memrchr3
Locate byte in memory object
Part of memchr(3).
Usage
#include <string.h>
QVoid *
memchr(QVoid *b, int c, size_t len);
QVoid *
memrchr(QVoid *b, int c, size_t len);
Library
Standard C Library (libc, -lc)
Overview
The memchr() function locates the first occurrence of c (converted to an unsigned char) in object b, limited to at most len characters.
The memrchr() function behaves like memchr(), except that it locates the last occurrence of c in object b, limited to the first len characters.
Return values
The memchr() and memrchr() functions return a pointer to the byte located, or NULL if no such byte exists within len bytes.
Releases
44 releases since FreeBSD 6.4-RELEASE; the text changed 33 times.