Timeline for string manipulation, which version of those 2 functions is better?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 31, 2013 at 1:08 | comment | added | William Morris |
Ok, I see now - you are doing a backwards strcmp with your loop. Sorry, I didn't read your function carefully enough.
|
|
Jan 30, 2013 at 23:59 | comment | added | Fallen |
I know that calling strlen isn't wasteful since it has a pure attribute. Your kind of wrong about the first statement The postfix is either at the end or it is not ; well, the postfix should be something like aaa while str can be like bbbaaa , you may have not thought about it harder (If I understand correctly).
|
|
Jan 30, 2013 at 22:34 | history | answered | William Morris | CC BY-SA 3.0 |