From d957951b75df08a9bb0293e3e13ff87759afbb92 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 11 Feb 2005 19:41:16 +0000 Subject: new --- src/libndb/ndbcat.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/libndb/ndbcat.c (limited to 'src/libndb/ndbcat.c') diff --git a/src/libndb/ndbcat.c b/src/libndb/ndbcat.c new file mode 100644 index 00000000..61ef5e47 --- /dev/null +++ b/src/libndb/ndbcat.c @@ -0,0 +1,18 @@ +#include +#include +#include +#include +#include + +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; +} -- cgit v1.2.3