memrchr overloads
Synopses
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;
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;
Return Value
Pointer to the last matching byte, or nullptr if none
Parameters
Name |
Description |
s |
Pointer to the buffer to search |
c |
Byte value to search for |
len |
Number of bytes in the buffer |
Created with MrDocs