home *** CD-ROM | disk | FTP | other *** search
- --- jot.c.orig Thu Nov 7 12:56:41 1991
- +++ jot.c Thu Jan 30 18:00:11 1997
- @@ -11,6 +11,7 @@
-
- #include <stdio.h>
- #include <ctype.h>
- +#include <string.h>
-
- #define REPS_DEF 100
- #define BEGIN_DEF 1
- @@ -127,13 +128,13 @@
- switch (ac) { /* examine args right to left, falling thru cases */
- case 4:
- if (!isdefault(av[3])) {
- - if (!sscanf(av[3], "%F", &s))
- + if (!sscanf(av[3], "%lf", &s))
- error("Bad s value: %s", av[3]);
- mask |= 01;
- }
- case 3:
- if (!isdefault(av[2])) {
- - if (!sscanf(av[2], "%F", &ender))
- + if (!sscanf(av[2], "%lf", &ender))
- ender = av[2][strlen(av[2])-1];
- mask |= 02;
- if (!prec)
- @@ -141,7 +142,7 @@
- }
- case 2:
- if (!isdefault(av[1])) {
- - if (!sscanf(av[1], "%F", &begin))
- + if (!sscanf(av[1], "%lf", &begin))
- begin = av[1][strlen(av[1])-1];
- mask |= 04;
- if (!prec)
- @@ -151,7 +152,7 @@
- }
- case 1:
- if (!isdefault(av[0])) {
- - if (!sscanf(av[0], "%D", &reps))
- + if (!sscanf(av[0], "%ld", &reps))
- error("Bad reps value: %s", av[0]);
- mask |= 010;
- }
-