strcmp(비교할 대상,비교할 문자열)


함수를 추상화 하여 나타내면


strcmp(s1,s2){

if(s1==s2) return 0;

if(s1>s2) return 1;

if(s1<s2) return -1;

}


+ Recent posts