공룡호가 사는 세상 이야기

strcmp() 구현

프로그래밍2006. 1. 25. 15:06
int ustrcmp(char *a, char *b)
{
while (*a == *b && *a != 0)
{
a++;
b++;
}
return *a - *b;
}