clippian/src/string.c

12 lines
183 B
C
Raw Normal View History

2022-01-20 12:06:34 +00:00
#include "string.h"
int strcmp(const char* str1, const char* str2)
{
while(*str1)
{
int diff = *str1++ - *str2++;
if(diff) return diff;
}
return 0;
}