Searched refs:getnum (Results 1 - 9 of 9) sorted by relevance

/openbsd-current/lib/libc/gen/
H A Ddisklabel.c75 #define getnum(field, dname) \ macro
79 getnum(dp->d_ntracks, "nt");
80 getnum(dp->d_nsectors, "ns");
81 getnum(dp->d_ncylinders, "nc");
112 getnum(pp->p_offset, poffset);
/openbsd-current/games/battlestar/
H A Dcypher.c51 getnum(int *value, const char *fmt, ...) function
323 getnum(&position, "\nRoom (was %d) = ", position);
324 getnum(&ourtime, "Time (was %d) = ", ourtime);
325 getnum(&fuel, "Fuel (was %d) = ", fuel);
326 getnum(&torps, "Torps (was %d) = ", torps);
327 getnum(&CUMBER, "CUMBER (was %d) = ", CUMBER);
328 getnum(&WEIGHT, "WEIGHT (was %d) = ", WEIGHT);
329 getnum(&ourclock, "Clock (was %d) = ", ourclock);
330 if (getnum(&junk, "Wizard (was %d) = ", tempwiz) != -1 && !junk)
/openbsd-current/sbin/tunefs/
H A Dtunefs.c72 static int getnum(const char *, const char *, int, int);
109 maxbpg = getnum(optarg,
115 avgfilesize = getnum(optarg,
120 avgfpdir = getnum(optarg,
126 minfree = getnum(optarg,
243 getnum(const char *num, const char *desc, int min, int max) function
/openbsd-current/usr.bin/less/
H A Doption.c99 *(pendopt->ovar) = getnum(&s, printopt, NULL);
302 *(o->ovar) = getnum(&s, printopt, NULL);
428 num = getnum(&s, NULL, &err);
616 getnum(char **sp, char *printopt, int *errp) function
H A Doptfunc.c134 int sline = getnum(&s, "j", &err);
191 int hs = getnum(&s, "#", &err);
H A Dfuncs.h214 int getnum(char **, char *, int *);
H A Dtags.c262 taglinenum = getnum(&p, 0, &err);
/openbsd-current/lib/libc/time/
H A Dlocaltime.c133 static const char * getnum(const char * strp, int * nump, int min,
632 getnum(const char *strp, int *nump, int min, int max) function
671 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
677 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
684 strp = getnum(strp, &num, 0, SECSPERMIN);
734 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
741 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
746 strp = getnum(strp, &rulep->r_week, 1, 5);
751 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
757 strp = getnum(str
[all...]
/openbsd-current/sbin/disklabel/
H A Ddisklabel.c103 u_int64_t getnum(char *, u_int64_t, u_int64_t, const char **);
743 getnum((nptr), (min), \
749 getnum(char *nptr, u_int64_t min, u_int64_t max, const char **errstr) function

Completed in 147 milliseconds