This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/stricoll.c

22 lines
355 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <string.h>
#include <mbstring.h>
char buffer[80] = "world";
void main()
{
int test;
_setmbcp( 932 );
test = _stricoll( buffer, "Hello" );
if( test < 0 ) {
printf( "Less than\n" );
} else if( test == 0 ) {
printf( "Equal\n" );
} else {
printf( "Greater than\n" );
}
}