|
|
1.1 root 1: .\" Copyright (c) 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted
5: .\" provided that: (1) source distributions retain this entire copyright
6: .\" notice and comment, and (2) distributions including binaries display
7: .\" the following acknowledgement: ``This product includes software
8: .\" developed by the University of California, Berkeley and its contributors''
9: .\" in the documentation or other materials provided with the distribution
10: .\" and in all advertising materials mentioning features or use of this
11: .\" software. Neither the name of the University nor the names of its
12: .\" contributors may be used to endorse or promote products derived
13: .\" from this software without specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)abs.3 6.2 (Berkeley) 5/16/90
19: .\"
20: .TH ABS 3 "May 16, 1990"
21: .UC 7
22: .SH NAME
23: abs \- return the absolute value of an integer
24: .SH SYNOPSIS
25: .nf
26: .ft B
27: #include <stdlib.h>
28:
29: int
30: abs(int j);
31: .ft R
32: .fi
33: .SH DESCRIPTION
34: .B Abs
35: returns the absolute value of the integer
36: .IR n .
37: .SH SEE ALSO
38: floor(3), labs(3)
39: .SH STANDARDS
40: .B Abs
41: conforms to ANSI X3.159-1989 (``ANSI C'').
42: .SH BUGS
43: The absolute value of the most negative integer remains negative.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.