tndbcat.c - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
tndbcat.c (224B)
---
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 }