macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / stdlib / abs.c
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)abs.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
int
abs(j)
int j;
{
return(j < 0 ? -j : j);
}