I want to save 2 strings in one variable (like "name surname"). On Windows this scanf
works fine but when I run this code on Lubuntu the same scanf
does not work. Why is that and how can I fix this?
printf("Give a Name and surname:\n");
fflush(stdin);
scanf("%[^\t\n]", Students[size].name);
Students[size].name
is a struct that I made.
struct Eggrafes{
char *name;
int *pst;
}*Students;