]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libndb/ndbcat.c
Import sources from 2011-03-30 iso image - lib
[plan9front.git] / sys / src / libndb / ndbcat.c
1 #include <u.h>
2 #include <libc.h>
3 #include <bio.h>
4 #include <ctype.h>
5 #include <ndb.h>
6
7 Ndb*
8 ndbcat(Ndb *a, Ndb *b)
9 {
10         Ndb *db = a;
11
12         if(a == nil)
13                 return b;
14         while(a->next != nil)
15                 a = a->next;
16         a->next = b;
17         return db;
18 }