Differences

This shows you the differences between two versions of the page.

Link to this comparison view

strcmp [2019/05/22 21:29]
neils created
strcmp [2019/05/22 21:30] (current)
neils
Line 5: Line 5:
   strcmp(<string pointer arg1>, <string pointer arg2>)   strcmp(<string pointer arg1>, <string pointer arg2>)
      
-The ''STRCMP()'' function is used to compare two strings. It compares the strings that the arguments point to, character by character. The comparison stops at the first unmatching character, or if one of the strings end. The function returns an integer as the result of the comparison:+The ''STRCMP()'' function is used to compare two strings. It compares the strings that the arguments point to, character by character. The comparison stops at the first unmatched character, or if one of the strings end. The function returns an integer as the result of the comparison:
  
 ^Return value^Meaning^ ^Return value^Meaning^