aboutsummaryrefslogtreecommitdiff
path: root/src/libndb/ndbcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libndb/ndbcat.c')
-rw-r--r--src/libndb/ndbcat.c18
1 files changed, 18 insertions, 0 deletions
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 <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;
+}