qh_set_errno_on_error()

QNX SDP8.0QNX Helpers Developer's GuideAPIDeveloper

Conditionally set errno

Synopsis:

#include <qh/error.h>
static errno_t qh_set_errno_on_error(const errno_t errval)

Arguments:

errval
The standard errno to set errno to if not EOK.

Library:

qh

Description:

This function sets errno to the error value specified by errval if it is not EOK and returns the value of errval.

Returns:

The value of errval.

Page updated: