TIOCGPGRP copies an int out of the kernel
[unix-history] / usr / src / lib / libc / stdlib / labs.c
CommitLineData
47ee8073
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(LIBC_SCCS) && !defined(lint)
dd967b02 9static char sccsid[] = "@(#)labs.c 5.2 (Berkeley) %G%";
47ee8073
KB
10#endif /* LIBC_SCCS and not lint */
11
dd967b02
KB
12#include <stdlib.h>
13
47ee8073
KB
14long
15labs(j)
16 long j;
17{
18 return(j < 0 ? -j : j);
19}