imaxabs(3)

imaxabs3

Returns absolute value

Usage

#include <inttypes.h>

intmax_t

imaxabs(intmax_t j);

Library

Standard C Library (libc, -lc)

Overview

The imaxabs() function returns the absolute value of j.

Releases

Unchanged in 145 releases since Mac OS X 10.3.

  1. 10.3–26.5

Standards

The imaxabs() function conforms to ISO/IEC 9899:1999 (“ISO C99”).

History

The imaxabs() function first appeared in FreeBSD 5.0.

Bugs

The absolute value of the most negative integer remains negative.

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.