|
|
|
|
|
by unwind
1077 days ago
|
|
Uh I think the CS-theoretical part of your comment kinda whooshes over my head, but I think it's good to clarify what you're doing with the return value of
strcmp(). I'm sure you probably know this, but for non-C-programmers it's not obvious: strcmp() returns 0 when the strings are equal, <0 if the first string is lexicographically less than the second, and >1 otherwise. Since the two strings handed to strcmp() in your snippet are equal, it will return 0 and the if will not execute. |
|