plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

subr.c (321B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <stdio.h>
      4 #include "iplot.h"
      5 void putnum(int num[], double *ff[]){
      6 	double **fp, *xp;
      7 	int *np, n,i;
      8 	np = num;
      9 	fp = ff;
     10 	while( (n = *np++)){
     11 		xp = *fp++;
     12 		printf("{ ");
     13 		for(i=0; i<n;i++){
     14 			printf("%g %g ",*xp, *(xp+1));
     15 			if(i&1)printf("\n");
     16 		}
     17 		printf("}\n");
     18 	}
     19 }