Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.59 KB

File metadata and controls

49 lines (34 loc) · 1.59 KB
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
DLLExport
topic_type
apiref
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

_set_doserrno

Sets the value of the _doserrno global variable.

Syntax

errno_t _set_doserrno( int error_value );

Parameters

error_value
The new value of _doserrno.

Return Value

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.

Requirements

Routine Required header Optional header
_set_doserrno <stdlib.h> <errno.h>

For more compatibility information, see Compatibility.

See also

_get_doserrno
errno, _doserrno, _sys_errlist, and _sys_nerr