PatchworkOS
Loading...
Searching...
No Matches
strcmp.c
Go to the documentation of this file.
1#include <string.h>
2
3int strcmp(const char* s1, const char* s2)
4{
5 while ((*s1) && (*s1 == *s2))
6 {
7 ++s1;
8 ++s2;
9 }
10
11 return (*(unsigned char*)s1 - *(unsigned char*)s2);
12}
int strcmp(const char *s1, const char *s2)
Definition strcmp.c:3