00001 #include <grass/gis.h> 00002 /* 00003 ********************************************************* 00004 * 00005 * G_copy (a, b, n) 00006 * 00007 * copies n bytes starting at address b into address a 00008 ********************************************************/ 00009 00010 int G_copy ( void *a,void *b,int n) 00011 { 00012 char *ap,*bp; 00013 ap = a; 00014 bp = b; 00015 00016 while (n-- > 0) 00017 *ap++ = *bp++; 00018 00019 return 0; 00020 }