/src/usr.bin/sort/ |
fsort.c | 84 RECHEADER **keylist; local in function:fsort 101 keylist = malloc(2 * max_recs * sizeof(*keylist)); 102 if (buffer == NULL || keylist == NULL) 103 err(2, "failed to malloc initial buffer or keylist"); 120 keypos = keylist; 163 /* patch up keylist[] */ 164 for (keyp = &keypos[-1]; keyp >= keylist; keyp--) 173 radix_sort(keylist, keylist + max_recs, nelem) [all...] |
/src/games/arithmetic/ |
arithmetic.c | 95 static const char keylist[] = "+-x/"; variable in typeref:typename:const char[] 125 if (!strchr(keylist, *p)) 290 static int penalty[sizeof(keylist) - 1][2]; 294 } *penlist[sizeof(keylist) - 1][2]; 372 if (op == 0 || (p = strchr(keylist, op)) == NULL) 373 errx(1, "arithmetic: bug: op %c not in keylist %s", 374 op, keylist); 375 return(p - keylist);
|
/src/usr.sbin/mtree/ |
misc.c | 64 static KEY keylist[] = { variable in typeref:typename:KEY[] 125 for (i = 0; i < sizeof(keylist) / sizeof(KEY); i++) 126 allbits |= keylist[i].val; 131 k = (KEY *)bsearch(&tmp, keylist, sizeof(keylist) / sizeof(KEY),
|