Not really sure what is going on here. The error message I have prints out and the program quits but it seems "Success" is being added to the end of my error message
Then when I have an error I do:Code:void error(const char* msg) {perror(msg); exit(1);}
The program exits but the message that is printed is:Code:error("ERROR: input contains bad characters");
"ERROR: input contains bad characters: Success"
Any idea why I am getting this success or how to fix this?