Some reflexions about strcmp returning <0, =0, >0 instead of -1, 0, 1.
As Salem said: both results are consistent, yes. But looking for positive or negative instead of 1 and -1 is more generic and will be true for all implementations. When in doubt stick to the manual.
How many times did I...