Last error message from unsuccessful function call
const char* mclGetLastErrorMessage()
This function returns a function error message (usually in the
form of false
or -1
).
char *args[] = { "-nodisplay" }; if(!mclInitializeApplication(args, 1)) { fprintf(stderr, "An error occurred while initializing: \n %s ", mclGetLastErrorMessage()); return -1; }