*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> labs (3)              
Title
Content
Arch
Section
 

LABS(3)

Contents


NAME    [Toc]    [Back]

     labs, llabs - return the absolute value of a long integer

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     long
     labs(long i);

     long long
     llabs(long long j);

DESCRIPTION    [Toc]    [Back]

     The labs() function returns the absolute value of  the  long
integer i.
     The  llabs() function returns the absolute value of the long
long integer
     j.

SEE ALSO    [Toc]    [Back]

      
      
     abs(3), cabs(3), floor(3), math(3)

STANDARDS    [Toc]    [Back]

     The labs() and llabs()  functions  conform  to  ANSI/ISO/IEC
9899-1999
     (``ANSI C99'').

BUGS    [Toc]    [Back]

     The absolute value of the most negative integer remains negative.

OpenBSD      3.6                           May      14,      2003
[ Back ]
 Similar pages
Name OS Title
llabs NetBSD return the absolute value of a long long integer
wcstol IRIX convert wide character string to long integer, unsigned long integer, long long integer, unsigned long long in
abs IRIX return integer absolute value
qabs OpenBSD return the absolute value of a quad integer
qabs NetBSD return the absolute value of a quad integer
strtoq FreeBSD convert a string value to a long, long long, intmax_t or quad_t integer
strtol NetBSD convert string value to a long, long long, intmax_t or quad_t integer
strtoll FreeBSD convert a string value to a long, long long, intmax_t or quad_t integer
strtoq NetBSD convert string value to a long, long long, intmax_t or quad_t integer
strtoll NetBSD convert string value to a long, long long, intmax_t or quad_t integer
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service