home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume10
/
complex-lib
/
cxadd.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-07-14
|
304 b
|
22 lines
/*
CxAdd -- add one complex to another
last edit: 86/01/04 D A Gwyn
SCCS ID: @(#)cxadd.c 1.1
CxAdd( &a, &b ) adds b to a and returns &a
*/
#include <complex.h>
complex *
CxAdd( ap, bp )
register complex *ap, *bp; /* may coincide */
{
ap->re += bp->re;
ap->im += bp->im;
return ap;
}