Skip to Main Content Skip to Search
Product Documentation

xPCSetLastError - Set last error to specific string constant

Prototype

void xPCSetLastError(int error);

Arguments

error

Specify the string constant for the error.

Description

The xPCSetLastError function sets the global error constant returned by xPCGetLastError to error. This is useful only to set the string constant to ENOERR, indicating no error was found.

See Also

API functions xPCGetLastError, xPCErrorMsg

  


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