mcopy.c 478 B

1234567891011121314151617
  1. /* mcopy.c CCMATH mathematics library source code.
  2. *
  3. * Copyright (C) 2000 Daniel A. Atkinson All rights reserved.
  4. * This code may be redistributed under the terms of the GNU library
  5. * public license (LGPL). ( See the lgpl.license file for details.)
  6. * ------------------------------------------------------------------------
  7. */
  8. void mcopy(double *a, double *b, int m)
  9. {
  10. double *p, *q;
  11. int k;
  12. for (p = a, q = b, k = 0; k < m; ++k)
  13. *p++ = *q++;
  14. }