Numworks Epsilon  1.4.1
Graphing Calculator Operating System
strcmp.c
Go to the documentation of this file.
1 #include <string.h>
2 
3 int strcmp(const char *s1, const char *s2) {
4  while(*s1 != NULL && *s1 == *s2) {
5  s1++;
6  s2++;
7  }
8  return (*(unsigned char *)s1) - (*(unsigned char *)s2);
9 }
#define NULL
Definition: stddef.h:4
int strcmp(const char *s1, const char *s2)
Definition: strcmp.c:3