diff options
author | wkj <devnull@localhost> | 2004-05-16 07:57:50 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-05-16 07:57:50 +0000 |
commit | b237df90f9390dac1ff1fdcb6813ca1f2a7bef4f (patch) | |
tree | e1ca0f939b9a7b9a3c817c7a77a4df9ddf610418 /src/cmd/graph | |
parent | 5f1cf8e6fb130fd48d6f016d13baf5408b3181f8 (diff) | |
download | plan9port-b237df90f9390dac1ff1fdcb6813ca1f2a7bef4f.tar.gz plan9port-b237df90f9390dac1ff1fdcb6813ca1f2a7bef4f.tar.bz2 plan9port-b237df90f9390dac1ff1fdcb6813ca1f2a7bef4f.zip |
Checkpoint.
Diffstat (limited to 'src/cmd/graph')
-rw-r--r-- | src/cmd/graph/graph.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd/graph/graph.c b/src/cmd/graph/graph.c index 7f41dfab..b740a53e 100644 --- a/src/cmd/graph/graph.c +++ b/src/cmd/graph/graph.c @@ -87,7 +87,7 @@ int conv(float, struct xy *, int *); int symbol(int, int, int); void axlab(char, struct xy *, char *); -void main(int argc,char *argv[]){ +int main(int argc,char *argv[]){ openpl(); range(0,0,4096,4096); @@ -115,6 +115,7 @@ void main(int argc,char *argv[]){ plot(); closepl(); exits(0); + return 0; /* gcc */ } void init(struct xy *p){ @@ -243,6 +244,12 @@ void limread(struct xy *p, int *argcp, char ***argvp){ p->xqf = 1; } +#ifdef NOTDEF +isdigit(char c){ + return '0'<=c && c<='9'; +} +#endif + int numb(float *np, int *argcp, char ***argvp){ char c; @@ -629,6 +636,7 @@ getfloat(float *p){ i = scanf("%f",p); return(i==1); } + int getstring(void){ int i; |