projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 90/10/01 22:07:21 by bostic
[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
);
}