shithub: riscv

ref: 65ab0d034b729354c1f13712284b555be5504a0b
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;
}