memrchr overloads
Declared in <folly/lang/CString.h>
Find the last occurrence of a byte in a buffer (mimics glibc memrchr).
void*
memrchr(
void* s,
int c,
std::size_t len) noexcept;
» more...
Find the last occurrence of a byte in a read-only buffer (mimics glibc memrchr).
void const*
memrchr(
void const* s,
int c,
std::size_t len) noexcept;
» more...
Pointer to the last matching byte, or nullptr if none
| Name | Description |
|---|---|
| s | Pointer to the buffer to search |
| c | Byte value to search for |
| len | Number of bytes in the buffer |