home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************/
- int strcmpu( s, t )
- /* returns: -1 is s < t
- 0 if s = t
- 1 if s > t
- without regard to case */
- char s[], t [] ;
- {
- int i;
- i = 0 ;
- while( toupper(s[i]) == toupper(t[i]) ) {
- if( s[i++] == '\0' ) {
- return( 0 ) ;
- }
- }
- return( toupper(s[i]) - toupper(t[i]) ) ;
- }
- /************************************************************************/
-