1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#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; }