use stderr if getline fails
This commit is contained in:
parent
b8ec732f61
commit
1ca6ae7170
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ int main(void) {
|
|||
fputs("Enter number to factor: ", stdout);
|
||||
int err = getline(&lineptr, &bufsize, stdin);
|
||||
if(err == -1) {
|
||||
puts("Error reading line from user input");
|
||||
fputs("Error reading line from user input\n", stderr);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue