填空题

函数sstrcmp()的功能是对两个字符串进行比较。当s所指字符串和t所指字符串相等时,返回值为0:当s所指字符串大于t所指字符串时,返回值大于0;当s所指字符串大于t所指字符串时,返回值大于0(功能等同于strcmp())。请填空。 int Sstrcmp(char *S,char *t) { while(*s&&*t&&*S==*t) { s++; t++; } return 【7】 ; }

【参考答案】

*s-*t或s[0]-t[0]