|
Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
#include <string.h>
Go to the source code of this file.
Functions | |
| void * | __memrchr (const void *, int, size_t) |
| char * | strrchr (const char *s, int c) |
| Finds the last occurrence of c in the null-terminated byte string pointed to by s. More... | |
| void* __memrchr | ( | const void * | , |
| int | , | ||
| size_t | |||
| ) |
| char* strrchr | ( | const char * | s, |
| int | c | ||
| ) |
Finds the last occurrence of c in the null-terminated byte string pointed to by s.
Finds the last occurrence of c (after conversion to char as if by (char)c ) in the null-terminated byte string pointed to by s (each character interpreted as unsigned char). The terminating null character is considered to be a part of the string and can be found when searching for '\0'.
The behavior is undefined if s is not a pointer to a null-terminated byte string.
| s | pointer to the null-terminated byte string to be analyzed |
| c | character to search for |
Definition at line 7 of file strrchr.c.
References __memrchr(), and strlen().