Optimization I'd like to see compilers be able to make: if (strlen(s)>100) -> if (strnlen(s,101)>100)
-
Show this thread
Actually strnlen is only POSIX, not plain C, so -> if (!memchr(s, 0, 100))
3:17 PM - 17 Jul 2018
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.