function in C is same as strcmp() function. But, strcmpi( ) function is not case sensitive. i.e, âAâ and âaâ are treated as same characters. Where as, strcmp() function treats âAâ and âaâ as different characters.
strcmpi() function is non standard function which may not available in standard library in C.Syntax:
int strcmpi ( const char * str1, const char * str2 );Example:
int main( )
char str1[ ] = "technicia" ;
char str2[ ] = "software" ;
int i, j, k ;
i = strcmpi ( str1, "TECHNICIA" ) ;
j = strcmpi ( str1, str2 ) ;
k = strcmpi ( str1, "t" ) ;
printf ( "\n%d %d %d", i, j, k ) ;
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 192 / 158730147. Delta: 0.02124 с