Name
llabs
Synopsis
Gives the absolute value of a long
long
integer
#include <stdlib.h> long longllabs
( long longn
);
The parameter and the return value of llabs()
are long
long
integers. Otherwise, llabs()
works the same as the int
function abs()
.
Example
See the example for abs()
in this
chapter.
Get C in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.