|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
00001 /* cmprt.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 #include "ccmath.h" 00009 void cmprt(Cpx * a, int m, int n, char *f) 00010 { 00011 int i, j; 00012 00013 Cpx *p; 00014 00015 for (i = 0, p = a; i < m; ++i) { 00016 for (j = 0; j < n; ++j, ++p) 00017 printf(f, p->re, p->im); 00018 printf("\n"); 00019 } 00020 }