Subversion Repositories planix.SVN

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ndb.h>

/* concatenate two tuples */
Ndbtuple*
ndbconcatenate(Ndbtuple *a, Ndbtuple *b)
{
        Ndbtuple *t;

        if(a == nil)
                return b;
        for(t = a; t->entry; t = t->entry)
                ;
        t->entry = b;
        ndbsetmalloctag(a, getcallerpc(&a));
        return a;
}