Mercurial > gnulib
view modules/memrchr @ 9983:24149eff52b8
Optimize and test memrchr.
* modules/memrchr (Depends-on): Add intprops.
* lib/memrchr.c (__memrchr): Avoid false positives in loop.
* modules/memrchr-tests: New file.
* tests/test-memrchr.c: New file.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sat, 26 Apr 2008 21:26:10 -0600 |
parents | 5a0294ce5372 |
children | 901b50b38fae |
line wrap: on
line source
Description: memrchr() function: scan memory for a byte, from the right end. Files: lib/memrchr.c m4/memrchr.m4 Depends-on: extensions intprops string configure.ac: gl_FUNC_MEMRCHR gl_STRING_MODULE_INDICATOR([memrchr]) Makefile.am: Include: <string.h> License: LGPL Maintainer: Jim Meyering, glibc