Which is the most reliable way to check if a character array is empty?
char text[50];
if(strlen(text) == 0) {}
or
if(text[0] == '\0') {}
or do i need to do
memset(text, 0, sizeof(text));
if(strlen(text) == 0) {}
Whats the most efficient way to go about this?