Pop quiz: b is a pointer to some reasonable size buffer. What happens here: strncpy(b, "hello world", 11); p = strstr(b, "hello");
-
-
That depends on the definition of the buffer which could be a giant array of null characters, and your interpretation of "reasonable."
-
Sorry, assuming initially indeterminate (uninitialized).
End of conversation
New conversation -
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.