Language/C
the way to check if a character array is empty
적외선
2012. 6. 13. 18:33
char text[50];
if(strlen(text) == 0) {}
if(text[0] == '\0') {}
memset(text, 0, sizeof(text));
if(strlen(text) == 0) {}
text[0] == 0;