30void *
memrchr (
const void *s,
int c,
size_t n)
32 const char *end = s + n;
34 while (end > (
const char *)s) {
44static int MemrchrTest01 (
void)
46 const char *haystack =
"abcabc";
49 char *ptr =
memrchr(haystack, needle, strlen(haystack));
56 if (strcmp(ptr,
"bc") != 0)
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
void * memrchr(const void *s, int c, size_t n)
void MemrchrRegisterTests(void)