Basicaly I'm trying to do this
int create_student(student_data *student){
printf("Nome do aluno:\n");
fgets(student->name,name_limit,stdin); //wtf?
printf("NĂºmero do aluno\n");
fgets(student->number,name_limit,stdin);
printf("Aqui devia estar um nome %s",student->name);
return 1;
}
Where student is a custom struct, student->name is char array. For some reason it seems to skip the fgets. Replacing with gets has no effect but scanf does seem to work.
If you think the problem lies with something else in my code I can post it. I just don't want to scare people away :P
Edit: Recently replaced number with a char array and the second fgets does seem to work. Just not the first one.