mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
18 lines
259 B
C
18 lines
259 B
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;
|
|
return a;
|
|
}
|