2 ms·
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/strcmp.3.html https://developer.apple.com/library/archive/doc
by skywal_l 4y ago
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/strcmp.3.html https://developer.apple.com/library/archive/documentation/Sy...
- cpeterso 4y agostrcmp's return value is loosely defined because some implementations return the difference between the characters in the string to avoid some conditional checks or jumps. Something like: int d = a[i] - b[i]; if (d == 0) return d;