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()
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()
Dtfind.c24 int (*compar)(const void *, const void *)) in tfind()
33 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tfind()
/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.c73 FTS* __fts_open(char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**)) { in __fts_open()
83 sp->fts_compar = compar; in __fts_open()
128 if (compar) { in __fts_open()
141 if (compar && nitems > 1) in __fts_open()
1041 FTS* fts_open(char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**)) { in fts_open()
1047 return __fts_open(argv, options, compar); in fts_open()