error should exit -1

This commit is contained in:
cyy 2019-09-05 19:02:59 +08:00
parent 994f955348
commit e0e709f423
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ void copy(double *x, double *y, int n)
void error(char *s){
fprintf(stderr, "Error: %s\n", s);
exit(0);
exit(-1);
}
char *fgetl(FILE *fp)