shithub: riscv

ref: a33e93a75248e09f3d1daf0b8662d6c4616c64c0
dir: /sys/src/libndb/ndbcat.c/

View raw version
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ctype.h>
#include <ndb.h>

Ndb*
ndbcat(Ndb *a, Ndb *b)
{
	Ndb *db = a;

	if(a == nil)
		return b;
	while(a->next != nil)
		a = a->next;
	a->next = b;
	return db;
}