I\'m writing a very small program in C that needs to check if a certain string is empty. For the sake of this question, I\'ve simplified my code:
#include
If you want to check if a string is empty:
if (str[0] == '\0') { // your code here }