dec21140A ethernet driver for virtualpc, contributed by nicolas tittley.
[minix.git] / man / man3 / abs.3
blob3b5bc348c20d5d821792c138caa887e084afd996
1 .\"     @(#)abs.3       6.1 (Berkeley) 5/15/85
2 .\"
3 .TH ABS 3 "May 15, 1985"
4 .AT 3
5 .SH NAME
6 abs \- integer absolute value
7 .SH SYNOPSIS
8 .nf
9 .ft B
10 #include <stdlib.h>
12 int abs(int \fIi\fP)
13 .ft R
14 .fi
15 .SH DESCRIPTION
16 .B Abs
17 returns the absolute value of its integer operand.
18 .SH SEE ALSO
19 .BR floor (3).
20 .SH BUGS
21 Applying the \fIabs\fP function to the most negative integer generates a
22 result which is the most negative integer.  That is, abs(0x80000000)
23 returns 0x80000000 as a result on a machine with 32-bit ints.  Using the
24 result in unsigned computations is sound however.