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
You can try like this:-
if (string[0] == '\0') { }
In your case it can be like:-
do { ... } while (url[0] != '\0')
;