/* Like bsearch, but takes and passes on an argument like qsort_r. */
-extern void *bsearch_r (register const void *, const void *,
- size_t, register size_t,
- register int (*)(const void *, const void *, void *),
+extern void *bsearch_r (const void *, const void *,
+ size_t, size_t,
+ int (*)(const void *, const void *, void *),
void *);
#if defined(HAVE_DECL_ASPRINTF) && !HAVE_DECL_ASPRINTF
* look at item 3.
*/
void *
-bsearch (register const void *key, const void *base0,
- size_t nmemb, register size_t size,
- register int (*compar)(const void *, const void *))
+bsearch (const void *key, const void *base0,
+ size_t nmemb, size_t size,
+ int (*compar)(const void *, const void *))
{
- register const char *base = (const char *) base0;
- register int lim, cmp;
- register const void *p;
+ const char *base = (const char *) base0;
+ int lim, cmp;
+ const void *p;
for (lim = nmemb; lim != 0; lim >>= 1) {
p = base + (lim >> 1) * size;
* look at item 3.
*/
void *
-bsearch_r (register const void *key, const void *base0,
- size_t nmemb, register size_t size,
- register int (*compar)(const void *, const void *, void *),
+bsearch_r (const void *key, const void *base0,
+ size_t nmemb, size_t size,
+ int (*compar)(const void *, const void *, void *),
void *arg)
{
- register const char *base = (const char *) base0;
- register int lim, cmp;
- register const void *p;
+ const char *base = (const char *) base0;
+ int lim, cmp;
+ const void *p;
for (lim = nmemb; lim != 0; lim >>= 1) {
p = base + (lim >> 1) * size;