1*47940Sbostic /*- 2*47940Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*47940Sbostic * All rights reserved. 422893Skre * 5*47940Sbostic * %sccs.include.proprietary.c% 610485Sdlw */ 710485Sdlw 8*47940Sbostic #ifndef lint 9*47940Sbostic static char sccsid[] = "@(#)h_abs.c 5.2 (Berkeley) 04/12/91"; 10*47940Sbostic #endif /* not lint */ 11*47940Sbostic h_abs(x)1210485Sdlwshort h_abs(x) 1310485Sdlw short *x; 1410485Sdlw { 1510485Sdlw if(*x >= 0) 1610485Sdlw return(*x); 1710485Sdlw return(- *x); 1810485Sdlw } 19