isCobolError The isCobolError function returns the last error message, if any. int isCobolError (char *msg, int len); Parameters msg Buffer to store the error message. len Length of the buffer.