]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libndb/ndbconcatenate.c
fix typo
[plan9front.git] / sys / src / libndb / ndbconcatenate.c
1 #include <u.h>
2 #include <libc.h>
3 #include <bio.h>
4 #include <ndb.h>
5
6 /* concatenate two tuples */
7 Ndbtuple*
8 ndbconcatenate(Ndbtuple *a, Ndbtuple *b)
9 {
10         Ndbtuple *t;
11
12         if(a == nil)
13                 return b;
14         for(t = a; t->entry; t = t->entry)
15                 ;
16         t->entry = b;
17         ndbsetmalloctag(a, getcallerpc(&a));
18         return a;
19 }