|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
00001 /* mcopy.c CCMATH mathematics library source code. 00002 * 00003 * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. 00004 * This code may be redistributed under the terms of the GNU library 00005 * public license (LGPL). ( See the lgpl.license file for details.) 00006 * ------------------------------------------------------------------------ 00007 */ 00008 void mcopy(double *a, double *b, int m) 00009 { 00010 double *p, *q; 00011 00012 int k; 00013 00014 for (p = a, q = b, k = 0; k < m; ++k) 00015 *p++ = *q++; 00016 }