shithub: riscv

ref: a078bdb66a95b9d604cfc0ba4122feec2e040c68
dir: /sys/src/libndb/ndbconcatenate.c/

View raw version
#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;
}