ABS(3)                  NetBSD Library Functions Manual                 ABS(3)

NAME
     abs, labs, llabs, imaxabs -- functions for integer absolute value

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <stdlib.h>

     int
     abs(int x);

     long int
     labs(long int x);

     long long int
     llabs(long long int x);

     #include <inttypes.h>

     intmax_t
     imaxabs(intmax_t x);

DESCRIPTION
     These functions return the absolute value of the integer x.  The listed
     functions differ only with respect to the type of the return value and x.

SEE ALSO
     cabs(3), fabs(3), floor(3), math(3)

STANDARDS
     The described functions conform to ISO/IEC 9899:1999 (``ISO C99'').

BUGS
     The absolute value of the most negative integer remains negative.

NetBSD 6.0                      April 13, 2011                      NetBSD 6.0

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen