Guardian C Library Calls Reference Manual

Guardian TNS C Library Calls Reference Manual128833 3-1
3
Reference to Library Calls
This section describes the routines in the Guardian TNS C run-time library. The
description of each routine shows:
What the routine does
Whether the routine is a function or a macro
Whether the routine is part of standard C or is a supplementary Tandem extension to
the ISO/ANSI C standard.
What header or headers you need to include before calling the routine
What arguments the routine accepts and how it interprets them
What value the routine returns and how you should interpret it
What guidelines you need to remember when using the routine
Most of the descriptions also include an example that shows how to use the routine.
abort
The abort function causes abnormal termination, unless a signal handler catches
SIGABRT and does not return.
abs
The abs function returns the absolute value of its argument.
expr
is an expression whose value has type int.
Return Value
is the absolute value of expr.
#include <stdlibh>
void abort(void);
#include <stdlibh>
int abs( int expr);