blob: 6dd849646c387158e81b164651627e3447b8da43 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
void *
libsimple_rawmemchr(const void *s_, int c)
{
char *s = *(char **)(void *)&s_;
while ((int)*s++ != c);
return &s[-1];
}
|