ERROR osGetLastError(void);
The function returns the error code associated with the last failed operation.
This function is used to retrieve the error code of the most recent operation that failed.
The error code is updated by system functions only when a failure occurs, and a unique error status is maintained for each task. It can be retrieved using the osGetLastError function or manually defined using osSetLastError. The ERROR type is specifically dedicated for variables intended to store these codes. A comprehensive list of all possible error codes is available in the error codes list section.
| Version: | 1.0 |
|---|---|
| Header file: | OS_API.h |
| See also: | ERROR, error codes list, error codes management, osSetLastError |