| description |
Learn more about: _set_doserrno |
| title |
_set_doserrno |
| ms.date |
4/2/2020 |
| api_name |
_set_doserrno |
_o__set_doserrno |
|
| api_location |
msvcrt.dll |
msvcr80.dll |
msvcr90.dll |
msvcr100.dll |
msvcr100_clr0400.dll |
msvcr110.dll |
msvcr110_clr0400.dll |
msvcr120.dll |
msvcr120_clr0400.dll |
ucrtbase.dll |
api-ms-win-crt-runtime-l1-1-0.dll |
api-ms-win-crt-private-l1-1-0.dll |
|
| api_type |
|
| topic_type |
|
| f1_keywords |
_set_doserrno |
set_doserrno |
|
| helpviewer_keywords |
_set_doserrno function |
doserrno global variable |
set_doserrno function |
_doserrno global variable |
|
| ms.assetid |
8686c159-3797-4705-a53e-7457869ca6f3 |
Sets the value of the _doserrno global variable.
errno_t _set_doserrno( int error_value );
error_value
The new value of _doserrno.
Returns zero if successful.
Remarks
Possible values are defined in Errno.h.
By default, this function's global state is scoped to the application. To change this, see Global state in the CRT.
| Routine |
Required header |
Optional header |
| _set_doserrno |
<stdlib.h> |
<errno.h> |
For more compatibility information, see Compatibility.
_get_doserrno
errno, _doserrno, _sys_errlist, and _sys_nerr