Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C

Name: Anonymous 2011-01-27 4:38

strlen(3) is FUCKING O(n)!

Name: Anonymous 2011-01-27 20:26

>>23
No, that's O(n + k) unless you pass two pointers. Keep it in string[0] and pass string[1] to library functions. Better yet, don't write code that calls strlen more often than it does something meaningful with the contents.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List