Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_fixcpp/sys/src/libndb/ndbconcatenate.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <bio.h>
4
#include <ndb.h>
5
 
6
/* concatenate two tuples */
7
Ndbtuple*
8
ndbconcatenate(Ndbtuple *a, Ndbtuple *b)
9
{
10
	Ndbtuple *t;
11
 
12
	if(a == nil)
13
		return b;
14
	for(t = a; t->entry; t = t->entry)
15
		;
16
	t->entry = b;
17
	ndbsetmalloctag(a, getcallerpc(&a));
18
	return a;
19
}