blob: 375984094ffa52e178555f81abb529f0019b2f17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include "memory.h"
size_t rawmemlchr(void const *buf, int value)
{
unsigned char const *buffer = buf;
for (size_t i = 0;; i++)
if (buffer[i] == (unsigned char)value)
return i;
}
|