Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
Guardian Native C Library Calls (a - e) abs(3)
NAME
abs - Computes absolute value of an integer
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
SYNOPSIS
#include <stdlib.h>
int abs(
int i);
PARAMETERS
i Specifies an integer.
DESCRIPTION
The abs() function returns the absolute value of its integer operand.
Atwo’s-complement integer can hold a negative number whose absolute value is too large for
the integer to hold. When given this largest negative value, the abs() function returns the same
value.
RETURN VALUES
The abs() function returns the absolute value of its argument.
RELATED INFORMATION
Functions: _abs(3), div(3), labs(3), ldiv(3), floor(3).
527192-007 Hewlett-Packard Company 1−5