Sign in
plan9port
/
plan9
/
f5ae255cc3dbe7823cf2fdc3c2c94c363c5932a4
/
.
/
src
/
libndb
/
ndbconcatenate.c
blob: 3725f181b3ae33cdedcb842ea39564dd8aa0ac2b [
file
] [
log
] [
blame
]
#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
;
}