plan9port/src/libndb/ndbconcatenate.c

19 lines
259 B
C
Raw Normal View History

2005-02-11 19:41:16 +00:00
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ndb.h>
/* concatenate two tuples */
Ndbtuple*
ndbconcatenate(Ndbtuple *a, Ndbtuple *b)
{
Ndbtuple *t;
if(a == nil)
return b;
for(t = a; t->entry; t = t->entry)
;
t->entry = b;
return a;
}