22 #pragma GCC optimize("no-tree-loop-distribute-patterns") 26 int StringCopyN(
char *dest,
const char *src,
int len)
39 int ByteSet(
void *buf,
int c,
size_t len)
42 char *tmp = (
char *) buf;
50 void MemoryCopy(
void *dest,
const void *src,
size_t len)
52 const unsigned char *sp = (
const unsigned char *) src;
53 unsigned char *dp = (
unsigned char *) dest;
54 for (; len != 0; len--)
58 int StringCompare(
const char *p1,
const char *p2)
62 while (p1[i] !=
'\0' && p2[i] !=
'\0')
72 if ((p1[i] ==
'\0' && p2[i] !=
'\0') || (p1[i] !=
'\0' && p2[i] ==
'\0'))