home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume10
/
complex-lib
/
cxcons.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-07-14
|
329b
|
23 lines
/*
CxCons -- construct a complex from real and imaginary parts
CxCons( &c, re, im ) makes c = re + i im and returns &c
last edit: 86/01/04 D A Gwyn
SCCS ID: @(#)cxcons.c 1.1
*/
#include <complex.h>
complex *
CxCons( cp, re, im )
register complex *cp;
double re, im;
{
cp->re = re;
cp->im = im;
return cp;
}