i need to read to a variable whats on my txt file, and after that print it. But I have this error /cygdrive/C/Program Files/NetBeans 8.2/ide/bin/nativeexecution/dorun.sh: line 71: 979 Segmentation fault sh "${SHFILE}"

while(fscanf(f," %[^\n]s %d %d %d %d %d %.2f %d", p->nome, p->id, p->dia, p->mes, p->ano, p->peso, p->experiencia, p->imped) != 8){
   printf("%s \n %d %d %d %d %d %.2f %d", p->nome, p->id, p->dia, p->mes, p->ano, p->peso, p->experiencia, p->imped);
}

0 Answers