Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

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

Link to this comparison view

strcmp [2019/05/22 20:29] – created neilsstrcmp [2019/05/22 20: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^