8 * Look for a pair with the given attribute. look first on the same line,
9 * then in the whole entry.
12 ndbfindattr(Ndbtuple *entry, Ndbtuple *line, char *attr)
16 /* first look on same line (closer binding) */
18 if(strcmp(attr, nt->attr) == 0)
25 /* search whole tuple */
26 for(nt = entry; nt; nt = nt->entry)
27 if(strcmp(attr, nt->attr) == 0)
34 ndblookval(Ndbtuple *entry, Ndbtuple *line, char *attr, char *to)
38 t = ndbfindattr(entry, line, attr);
40 strncpy(to, t->val, Ndbvlen-1);