check if string in string c
if(strstr(sent, word) != NULL) {
/* ... */
}
check if string in string c
if(strstr(sent, word) != NULL) {
/* ... */
}
correct way to check a string is uninitialised in c
char x[16] = { 0 }; // note the use of the initializer, it sets the first character to 0, which is all we need to test for initialization.
if (x[0] == 0)
// x is uninitialized.
else
// x has been initialized
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us