getnum
pmc.pmc_event = getnum(argv[optind], 0, 255);
static int getnum(const char *, int, int);
pmc.pmc_unit = getnum(optarg, 0, 256);
pmc.pmc_mask = getnum(optarg, 0, 256);
loops = getnum(optarg, 1, INT_MAX - 1);
sleeptime = getnum(optarg, 0, INT_MAX - 1);
w = getnum(strsep(&cur, ":"), &p, "weight");
w_h = p ? getnum(p+1, &p, "weight_max") : w;
w_steps = p ? getnum(p+1, &p, "w_steps") : (w_h == w ?1:2);
len = getnum(strsep(&cur, ":"), &p, "len");
len_h = p ? getnum(p+1, &p, "len_max") : len;
l_steps = p ? getnum(p+1, &p, "l_steps") : (len_h == len ? 1 : 2);
flows = getnum(strsep(&cur, ":"), NULL, "flows");
c->loops = getnum(av[1], NULL, av[0]);
c->lmin = getnum(av[1], NULL, av[0]);
c->maxburst = getnum(av[1], NULL, av[0]);
c->th_max = getnum(av[1], NULL, av[0]);
c->th_min = getnum(av[1], NULL, av[0]);
c->flows = getnum(av[1], NULL, av[0]);
simulatedopcount = getnum(optarg, &endp);
closeprob = getnum(optarg, &endp);
invlprob = getnum(optarg, &endp);
maxfilelen = getnum(optarg, &endp);
monitorstart = getnum(optarg, &endp);
monitorend = getnum(endp, &endp);
maxoplen = getnum(optarg, &endp);
progressinterval = getnum(optarg, &endp);
readbdy = getnum(optarg, &endp);
style = getnum(optarg, &endp);
truncbdy = getnum(optarg, &endp);
writebdy = getnum(optarg, &endp);
debugstart = getnum(optarg, &endp);
numops = getnum(optarg, &endp);
seed = getnum(optarg, &endp);
if (getnum(&val, &uval, signedconv))
if (getnum(&val, &uval, 1))
static int getnum(intmax_t *, uintmax_t *, int);
if (getnum("pid", *argv, &who)) {
static int getnum(const char *, const char *, int *);
if (getnum("priority", *argv, &prio))
else if (getnum("uid", *argv, &who)) {
val = getnum(optarg);
skip = getnum(optarg);
gutter = getnum(optarg);
propgutter = getnum(optarg);
static long getnum(const char *);
} else if (getnum(optarg, &format)) {
if (getnum(optarg, &fill)) {
if (getnum(optarg, &format)) {
if (getnum(s1, &out->sectrac))
if (getnum(s1, &j))
if (getnum(s1, &j))
if (getnum(s1, &out->gap))
if (getnum(s1, &j))
if (getnum(s1, &j))
if (getnum(s1, &j))
if (getnum(s1, &out->f_gap))
if (getnum(s1, &out->f_inter))
if (getnum(s1, &out->offset_side2))
int getnum(const char *, int *);
if ((cflag = getnum(optarg)) == -1)
if ((iflag = getnum(optarg)) == -1)
if ((oflag = getnum(optarg)) == -1)
if ((slave = getnum(optarg)) == -1)
if ((n = getnum(*argv)) == -1)
if ((n = getnum(*argv)) == -1)
static int getnum(const char *s);