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 check the return value from scanf. This code will just sit there until it receives a string.
scanf
int a; do { // other code a = scanf("%s", url); } while (a <= 0);