Home
last modified time | relevance | path

Searched refs:compar (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dlsearch.c45 cmp_fn_t compar) in lsearch() argument
48 return(linear_base(key, base, nelp, width, compar, 1)); in lsearch()
53 cmp_fn_t compar) in lfind() argument
55 return(linear_base(key, base, nelp, width, compar, 0)); in lfind()
60 cmp_fn_t compar, int add_flag) in linear_base() argument
66 if (!compar(key, element)) /* key found */ in linear_base()
Dtfind.c24 int (*compar)(const void *, const void *)) in tfind()
33 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tfind()
Dtsearch.c25 int (*compar)(const void *, const void *)) in tsearch()
36 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tsearch()
54 int (*compar)(const void *, const void *)) in tdelete()
65 while ((cmp = (*compar)(key, (*rootp)->key)) != 0) { in tdelete()
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Dbsearch.c63 int (*compar)(const void *, const void *)) in bsearch()
72 _DIAGASSERT(compar != NULL); in bsearch()
76 cmp = (*compar)(key, p); in bsearch()
/bionic/libc/bionic/
Dfts.c77 int (*compar)(const FTSENT **, const FTSENT **)) in __fts_open()
95 sp->fts_compar = compar; in __fts_open()
134 if (compar) { in __fts_open()
146 if (compar && nitems > 1) in __fts_open()
1057 int (*compar)(const FTSENT **, const FTSENT **)) in fts_open()
1065 return __fts_open(argv, options, compar); in fts_open()