getnum
getnum(mtime.tv_sec);
getnum(mtime.tv_usec);
getnum(atime.tv_sec);
getnum(atime.tv_usec);
if (getnum(optarg, &optargnum) < 0) {
return getnum("format version", txt+21,
if (getnum("numplayers", txt, 2, MAX_PL, &num_play) < 0) {
if (getnum("currentplayer", txt, 0, num_play-1, &player) < 0) {
if (getnum("doubles", txt, 0, 2, &num_doub) < 0) {
if (getnum(attribute, txt, 0, INT_MAX, &pp->money) < 0) {
if (getnum(attribute, txt, 0, N_SQRS, &tmp) < 0) {
if (getnum(attribute, txt, 0, 2, &tmp) < 0) {
if (getnum(attribute, txt, 0, 3, &tmp) < 0) {
if (getnum(attribute, txt, dp->num_cards, dp->num_cards,
if (getnum(attribute, txt, 0, dp->num_cards,
if (getnum(attribute, txt, 0, 1, &tmp) < 0) {
if (getnum(attribute, txt, -1, num_play-1, &tmp) < 0) {
if (getnum(attribute, txt, 0, 1, &tmp) < 0) {
if (getnum(attribute, txt, 0, 5, &tmp) < 0) {
static int getnum(const char *what, char *txt, int min, int max, int *ret);
return getnum(what, txt, min, max, ret);
getnum(dp->d_ntracks, "nt");
getnum(dp->d_nsectors, "ns");
getnum(dp->d_ncylinders, "nc");
getnum(pp->p_offset, poffset);
strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
strp = getnum(strp, &num, 0, SECSPERMIN);
strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
strp = getnum(strp, &rulep->r_week, 1, 5);
strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
if ((getnum(a, &tmp))<0) { /* on error, default to current */
if ((getnum(p, &tmp)) < 0) {
if ((getnum(p, &tmp)) < 0) {
if ((getnum(p, &tmp)) < 0) {
crypt_private int getnum(const char *, size_t *);
if (getnum(option, &nrounds) == -1)
if (getnum(option, &nrounds) == -1)
if ((getnum(a, &tmp)) == -1) {
if ((getnum(a, &tmp)) == -1) {
if ((getnum(a, &tmp)) == -1) {
long getnum(char *);
if ((im = getnum(lp, line, 0)) == -1 || im < 0) {
if ((im = getnum(lp, line, lp->d_secperunit - p->p_offset))
static intmax_t getnum(struct disklabel *, char *, intmax_t);
if (getnum(arg, &num) == -1)
if (getnum(arg, &num) == -1)
if (getnum(arg, &num) == -1)
nfsargsp->readahead = getnum(optarg, c);
nfsargsp->deadthresh = getnum(optarg, c);
num = getnum(optarg, c);
nfsargsp->readdirsize = getnum(optarg, c);
retrycnt = getnum(optarg, c);
nfsargsp->rsize = getnum(optarg, c);
nfsargsp->timeo = getnum(optarg, c);
nfsargsp->wsize = getnum(optarg, c);
nfsargsp->retrans = getnum(optarg, c);
static int getnum(const char *);
after = getnum(optarg);
before = getnum(optarg);
after = before = getnum(optarg);
dow = getnum(optarg);
(void)getnum(optarg, "goal", &goal_length, 1);
(void)getnum(optarg, "max", &max_length, 1);
if (compat && argc > 0 && getnum(*argv, "goal", &goal_length, 0)) {
if (argc > 0 && getnum(*argv, "max", &max_length, 0)) {
static int getnum(const char *, const char *, size_t *, int);
if (getnum("pid", *argv, &twho)) {
static int getnum(const char *, const char *, int *);
if (getnum("priority", *argv, &prio))
static char *getnum(int *, char *, int);
p = getnum(&owidth, p, 0);
p = getnum(&skip, p, 0);
p = getnum(&gutter, p, 0);
p = getnum(&propgutter, p, 0);
if (getnum(user, &num) == -1)
getnum(const char *str, uintmax_t *num)
if (getnum(group, &num) == -1)