home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / complex-lib / cxcopy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-07-14  |  264 b   |  21 lines

  1. /*
  2.     CxCopy -- copy a complex
  3.  
  4.     last edit:    86/01/04    D A Gwyn
  5.  
  6.     SCCS ID:    @(#)cxcopy.c    1.1
  7.  
  8.     CxCopy( &a, &b )    copies  b  to  a  and returns  &a
  9. */
  10.  
  11. #include    <complex.h>
  12.  
  13. complex *
  14. CxCopy( ap, bp )
  15.     complex    *ap, *bp;        /* may coincide */
  16.     {
  17.     *ap = *bp;
  18.  
  19.     return ap;
  20.     }
  21.