HP-UX 11i March 2002 Release Notes

Programming Libraries
Chapter 13
220
same name, as is the case today with libc names. If this library is used, user libraries
cannot contain identically named functions or unexpected results may occur.
Impact
Performance of some applications may improve by using this library. The improvement
is highly dependent on the application’s use of the included functions.
Documentation
The libcres.a (5) manpage describes the libcres.a library’s use more thoroughly.
Changes to libm
The fesetround() and fehold() functions in fenv.h have been upgraded to the
latest ISO C9x specification. Previously the functions returned nonzero to indicate
success and zero to indicate failure; now they return zero to indicate success and nonzero
to indicate failure.
Any code that depended on the return value will need to change. For example:
if (!fesetround(FE_UPWARD))
{/* deal with failure to set rounding direction */}
could be changed to:
if(fesetrod(FE_UPWARD))
{/* deal with failure to set rounding direction */}
Previous code that depended on the return value is not compatible beginning with the
11.0 May 1999 Extension Pack.