Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
matanl26448y@Kaji I thought you would get a positive if '0' is appended to the right param, since 0x60 > 0x0
-
blem1410638yI once helped guy with some easy program he tried to do, that had string input - space delimited commands and variables. I rather work with Python, but hey, basic logics apply to any language. After hour of "wtf it should work" we found out that every strcmp we used was expected to give positive value when command occured... of course it does not. Silly us.
-
willol13898yI'm not sure why you would expect it to return something other than 0? It isn't named isStrEqual
strcmp() is the most confusing function of all time. It returns zero when everything matches.
undefined