I'm using an if function that needs to check if the string is a NULL but i don't know how to ask for that.
I know that
if(a == 'NULL') \\int a
should check to see if the int is NULL but how do I ask if a string is empty or null. I want to say if(s1[0] == NULL) \\char s1[]
or something similar to this?
I want to make a code like this?
char s2[10];
int a;
(...)
if(s2[0] == NULL) \\what I am asking about
printf("null or empty string\n");
else
printf("string with items\n");
I would like to know what I should put for the if statement to ask if the string is NULL.