ref: 0b6f19f98cfc9a62fc4df1661c63c77ffe459f67
dir: /sys/src/libndb/ndbconcatenate.c/
#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;
ndbsetmalloctag(a, getcallerpc(&a));
return a;
}