llabs(3)

llabs3

Returns absolute value

Usage

#include <stdlib.h>

long long

llabs(long long i);

Library

Standard C Library (libc, -lc)

Overview

The llabs() function returns the absolute value of i.

Releases

145 releases since Mac OS X 10.3; the text changed 1 time.

  1. 10.3–10.4.11
  2. 10.5–26.5

Standards

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

History

The llabs() 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.