Commit 10610ce
committed
Compare hide argument using strcmp.
The more intuitive expression (str1 == str2) compares memory locations and therefore will not return true unless the strings point to the same address (hint: they don't). Strcmp is the appropriate method for comparing string literals.1 parent d44238d commit 10610ce
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments