QH_SET_ERRNO()

Updated: April 19, 2023

A macro that sets errno

Synopsis:

#include <qh/error.h>
#define QH_SET_ERRNO(errno)

Arguments:

errno
The standard errno to set errno to.

Library:

qh

Description:

Because what is passed in to the macro is only evaluated once, it is safe to execute operations as part of calling the macro.