#include <stdio.h>
#include <string.h>
int mystrCmp(const char * a, const char * b);
int mystrCmp(const char * a, const char * b){
for(; *a == *b; ++a, ++b)
if(*a == 0)
return 0;
return *(const char *)a - *(const char *)b;
}
int main(void) {
char *s1 = "1252";
char *s2 = "1252";
int res = mystrCmp(s1,s2);
printf("\nResult is %d",res);
return 0;
}