Lines Matching defs:getnum
73 static int getnum(const char *what, char *txt, int min, int max, int *ret);
467 return getnum("format version", txt+21,
532 if (getnum("numplayers", txt, 2, MAX_PL, &num_play) < 0) {
544 if (getnum("currentplayer", txt, 0, num_play-1, &player) < 0) {
553 if (getnum("doubles", txt, 0, 2, &num_doub) < 0) {
607 if (getnum(attribute, txt, 0, INT_MAX, &pp->money) < 0) {
612 if (getnum(attribute, txt, 0, N_SQRS, &tmp) < 0) {
617 if (getnum(attribute, txt, 0, 2, &tmp) < 0) {
622 if (getnum(attribute, txt, 0, 3, &tmp) < 0) {
647 if (getnum(attribute, txt, dp->num_cards, dp->num_cards,
652 if (getnum(attribute, txt, 0, dp->num_cards,
657 if (getnum(attribute, txt, 0, 1, &tmp) < 0) {
690 if (getnum(attribute, txt, -1, num_play-1, &tmp) < 0) {
701 if (getnum(attribute, txt, 0, 1, &tmp) < 0) {
710 if (getnum(attribute, txt, 0, 5, &tmp) < 0) {
722 getnum(const char *what, char *txt, int min, int max, int *ret)
760 return getnum(what, txt, min, max, ret);