Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d54a16dc42
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (15 sloc) 0.285 kB
void *memrchr(const void *buf, unsigned char c, size_t length) {
unsigned char *p = (unsigned char *) buf;
if(length == 0) {
return NULL;
}
for (;;) {
if (*p-- == c) {
break;
}
if (length-- == 0) {
return NULL;
}
}
return (void *) (p + 1);
}
Jump to Line
Something went wrong with that request. Please try again.