plan9port/src/libndb/ndbcat.c

19 lines
224 B
C
Raw Normal View History

2005-02-11 19:41:16 +00:00
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ctype.h>
#include <ndb.h>
Ndb*
ndbcat(Ndb *a, Ndb *b)
{
Ndb *db = a;
if(a == nil)
return b;
while(a->next != nil)
a = a->next;
a->next = b;
return db;
}