xref: /csrg-svn/usr.bin/f77/libF77/c_abs.c (revision 47940)
1*47940Sbostic /*-
2*47940Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47940Sbostic  * All rights reserved.
422823Skre  *
5*47940Sbostic  * %sccs.include.proprietary.c%
610441Sdlw  */
710441Sdlw 
8*47940Sbostic #ifndef lint
9*47940Sbostic static char sccsid[] = "@(#)c_abs.c	5.2 (Berkeley) 04/12/91";
10*47940Sbostic #endif /* not lint */
11*47940Sbostic 
1210441Sdlw #include "complex"
1310441Sdlw 
c_abs(z)1410441Sdlw float c_abs(z)
1510441Sdlw complex *z;
1610441Sdlw {
1710441Sdlw double cabs();
1810441Sdlw 
1910441Sdlw return( cabs( z->real, z->imag ) );
2010441Sdlw }
21