Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

string compare c

int result=strcmp(str1,str2);
// 0  if strings are equal
// >0  if the first non-matching character in str1 is greater (in ASCII) than that of str2.
// <0  if the first non-matching character in str1 is lower (in ASCII) than that of str2.
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #string #compare
ADD COMMENT
Topic
Name
5+6 =