2 * cabs() wrapper for hypot().
4 * Written by J.T. Conklin, <jtc@wimsey.com>
5 * Placed into the Public Domain, 1994.
9 #if defined(LIBM_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: compat_cabs.c,v 1.2 2007/08/10 21:20:35 drochner Exp $");
13 #include "../src/namespace.h"
21 double cabs(struct complex);
22 __warn_references(cabs
, "warning: reference to compatibility cabs()");
25 cabs(struct complex z
)
28 return hypot(z
.x
, z
.y
);