Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / stdlib / abs.c
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: abs.c,v 1.2 1994/06/24 11:53:08 ceriel Exp $ */
6
7 #include        <stdlib.h>
8
9 int
10 abs(register int i)
11 {
12         return i >= 0 ? i : -i;
13 }