home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume10
/
complex-lib
/
cxscal.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-07-14
|
291b
|
23 lines
/*
CxScal -- multiply a complex by a scalar
CxScal( &c, s ) scales c by s and returns &c
last edit: 86/01/04 D A Gwyn
SCCS ID: @(#)cxscal.c 1.1
*/
#include <complex.h>
complex *
CxScal( cp, s )
register complex *cp;
double s;
{
cp->re *= s;
cp->im *= s;
return cp;
}