>>93
strcmp(ptr[count - 1]->name, "")
or
ptr[count - 1]->name[0] == '\0'