ref: 3f0f52ab69a8e821fcd1ac66b8d509ee3074c266
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; }