aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/graph/subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/graph/subr.c')
-rw-r--r--src/cmd/graph/subr.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmd/graph/subr.c b/src/cmd/graph/subr.c
new file mode 100644
index 00000000..9531523d
--- /dev/null
+++ b/src/cmd/graph/subr.c
@@ -0,0 +1,19 @@
+#include <u.h>
+#include <libc.h>
+#include <stdio.h>
+#include "iplot.h"
+void putnum(int num[], double *ff[]){
+ double **fp, *xp;
+ int *np, n,i;
+ np = num;
+ fp = ff;
+ while( (n = *np++)){
+ xp = *fp++;
+ printf("{ ");
+ for(i=0; i<n;i++){
+ printf("%g %g ",*xp, *(xp+1));
+ if(i&1)printf("\n");
+ }
+ printf("}\n");
+ }
+}