started testing. BOOTP crashes at ip_send() ?
This commit is contained in:
@@ -55,6 +55,19 @@ void *memset(void *s, int c, size_t n)
|
||||
}
|
||||
|
||||
|
||||
int memcmp(const char *s1, const char *s2, size_t max)
|
||||
{
|
||||
int i;
|
||||
int cmp;
|
||||
|
||||
for (i = 0; i < max; i++)
|
||||
{
|
||||
cmp = (*s1 - *s2);
|
||||
if (cmp != 0) return cmp;
|
||||
}
|
||||
return cmp;
|
||||
}
|
||||
|
||||
int strncmp(const char *s1, const char *s2, size_t max)
|
||||
{
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user