main() won't loop when input from scanf() is empty (nothing happened when I hit "Enter" key after the "prompt" printed out in the shell. It's a truncated version of what I was trying to build. Very new to C, could really need some help!
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
int main(){
char string1;
printf("prompt");
scanf("%s", string1);
if(!string1){
return main();
}
printf(" %s", string1);
return 0;
}