Skip to Main Content Skip to Search
Product Documentation

xPCGetLastError - Return constant of last error

Prototype

int xPCGetLastError(void);

Return

The xPCGetLastError function returns the error constant for the last reported error. If the function did not detect an error, it returns 0.

Description

The xPCGetLastError function returns the constant of the last reported error by another API function. This value is reset every time you call a new function. Therefore, you should check this constant value immediately after a call to an API function. For a list of error constants and messages, see C API Error Messages.

See Also

API functions xPCErrorMsg, xPCSetLastError

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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