Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of LABS

LABS

Section: Linux Programmer's Manual (3)
Updated: June 6, 2025
Index  

NAME

labs - computes the absolute value of a long integer.  

SYNOPSIS

#include <stdlib.h>
long int labs(long int j);
 

DESCRIPTION

The labs() function computes the absolute value of the long integer argument j.  

RETURN VALUE

Returns the absolute value of the long integer argument.  

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899  

NOTES

Trying to take the absolute value of the most negative integer is not defined.  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
NOTES
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:04 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat