Hi
I'm trying to find a way to use sscanf to read a string that can include an unknown number of spaces.
I'm using so far
Someone can please tell what should I change? I'm just getting the first word since it stops at white spaces.Code:char in[1024];
int r = 0;
while ( r == 0){
printf("Insira o nome do restaurante a guardar:\n");
fgets(in, 1024, stdin);
r = sscanf(in, "%s\n", restaurante->nome);
}
