vendredi 27 janvier 2017

What is the if-statement "if(!string)" in C checking?

int func(char* string, char from, char to)
{
   int result = 0;
   if(!string) return 0;
// ...
}

i don't know whether this if-statement is checking, that the given string is empty or NULL. I tried to check it but I didn't receive a clear answer.

Aucun commentaire:

Enregistrer un commentaire