diff options
| author | rsc <devnull@localhost> | 2005-02-11 19:41:16 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2005-02-11 19:41:16 +0000 |
| commit | d957951b75df08a9bb0293e3e13ff87759afbb92 (patch) | |
| tree | 4d7868b0d223956217cbc8819d7afb3bec532cca /src/libndb/ndbcat.c | |
| parent | ad017cfbf5530cfc3ae2fafd723cdade2a4405f6 (diff) | |
| download | plan9port-d957951b75df08a9bb0293e3e13ff87759afbb92.tar.gz plan9port-d957951b75df08a9bb0293e3e13ff87759afbb92.zip | |
new
Diffstat (limited to 'src/libndb/ndbcat.c')
| -rw-r--r-- | src/libndb/ndbcat.c | 18 |
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; +} |
