commit | d957951b75df08a9bb0293e3e13ff87759afbb92 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Fri Feb 11 19:41:16 2005 +0000 |
committer | rsc <devnull@localhost> | Fri Feb 11 19:41:16 2005 +0000 |
tree | 4d7868b0d223956217cbc8819d7afb3bec532cca | |
parent | ad017cfbf5530cfc3ae2fafd723cdade2a4405f6 [diff] [blame] |
new
diff --git a/src/libndb/ndbcat.c b/src/libndb/ndbcat.c new file mode 100644 index 0000000..61ef5e4 --- /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; +}