Scroll to navigation

ABS(9) Driver Basics ABS(9)

NAME

abs - return absolute value of an argument

SYNOPSIS

abs(x);

ARGUMENTS

x
the value. If it is unsigned type, it is converted to signed type first. char is treated as if it was signed (regardless of whether it really is) but the macro's return type is preserved as char.

RETURN

an absolute value of x.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.