cara memeriksa apakah pointer string kosong di c

char *c = "";
if ((c != NULL) && (c[0] == '\0')) {
   printf("c is empty\n");
}
Crazy Cowfish