mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
19 lines
224 B
C
19 lines
224 B
C
|
#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;
|
||
|
}
|