142100Sbostic /*- 2*61180Sbostic * Copyright (c) 1990, 1993 3*61180Sbostic * The Regents of the University of California. All rights reserved. 442100Sbostic * 542100Sbostic * %sccs.include.redist.c% 642100Sbostic */ 742100Sbostic 842100Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*61180Sbostic static char sccsid[] = "@(#)labs.c 8.1 (Berkeley) 06/04/93"; 1042100Sbostic #endif /* LIBC_SCCS and not lint */ 1142100Sbostic 1242179Sbostic #include <stdlib.h> 1342179Sbostic 1442100Sbostic long labs(j)1542100Sbosticlabs(j) 1642100Sbostic long j; 1742100Sbostic { 1842100Sbostic return(j < 0 ? -j : j); 1942100Sbostic } 20