delorie.com/djgpp/doc/libc/libc_467.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

imaxabs

Syntax

 
#include <inttypes.h>

intmax_t imaxabs (intmax_t x);

Description

This function takes the absolute value of x.

abs (see section abs) operates on an int. This function operates on a greatest-width integer.

Return Value

|x|

Portability

ANSI/ISO C C99; not C89
POSIX 1003.1-2001; not 1003.2-1992


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004