Skip to Main Content Skip to Search
Product Documentation

mclGetLastErrorMessage - Last error message from unsuccessful function call

Synopsis

const char* mclGetLastErrorMessage() 

Description

This function returns a function error message (usually in the form of false or -1).

Example

char *args[] = { "-nodisplay" };
if(!mclInitializeApplication(args, 1))
{
    fprintf(stderr, 
            "An error occurred while initializing: \n %s ",
            mclGetLastErrorMessage());
    return -1;
} 

See Also

<library>Initialize[WithHandlers] | <library>Terminate | mclInitializeApplication | mclTerminateApplication

  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS