共用方式為


_get_doserrno

_doserrno is deprecated. Use _get_errno instead.

errno_t _get_doserrno( 
   int * pValue 
);

Parameters

  • [out] pValue
    A pointer to an integer to be filled with the current value of the _doserrno variable.

Return Value

Returns zero if successful; an error code on failure. If pValue is NULL, the invalid parameter handler is invoked as described in Parameter Validation. If execution is allowed to continue, this function sets errno to EINVAL and returns EINVAL.

Remarks

Possible values of _doserrno are defined in Errno.h.

Requirements

Routine

Required header

Optional header

_get_doserrno

<stdlib.h>

<errno.h>

For more compatibility information, see Compatibility in the Introduction.

See Also

Reference

_set_doserrno

errno, _doserrno, _sys_errlist, and _sys_nerr