Pop quiz: b is a pointer to some reasonable size buffer. What happens here: strncpy(b, "hello world", 11); p = strstr(b, "hello");
-
-
-
Replying to @RichFelker @ed_maste
That depends on the definition of the buffer which could be a giant array of null characters, and your interpretation of "reasonable."
1 reply 0 retweets 0 likes
Replying to @CarlosODonell @ed_maste
Sorry, assuming initially indeterminate (uninitialized).
8:14 AM - 25 Jul 2017
0 replies
0 retweets
1 like
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.