Lines Matching refs:strp
142 static const char * getzname(const char * strp);
143 static const char * getqzname(const char * strp, const int delim);
144 static const char * getnum(const char * strp, int * nump, int min,
146 static const char * getsecs(const char * strp, long * secsp);
147 static const char * getoffset(const char * strp, long * offsetp);
148 static const char * getrule(const char * strp, struct rule * rulep);
619 getzname(strp) in getzname() argument
620 register const char * strp; in getzname()
624 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' &&
626 ++strp;
627 return strp;
640 getqzname(register const char *strp, const int delim) in getqzname() argument
644 while ((c = *strp) != '\0' && c != delim) in getqzname()
645 ++strp; in getqzname()
646 return strp; in getqzname()
657 getnum(strp, nump, min, max) in getnum() argument
658 register const char * strp; in getnum()
666 if (strp == NULL || !is_digit(c = *strp))
673 c = *++strp;
678 return strp;
690 getsecs(strp, secsp) in getsecs() argument
691 register const char * strp; in getsecs()
702 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
703 if (strp == NULL)
706 if (*strp == ':') {
707 ++strp;
708 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
709 if (strp == NULL)
712 if (*strp == ':') {
713 ++strp;
715 strp = getnum(strp, &num, 0, SECSPERMIN);
716 if (strp == NULL)
721 return strp;
732 getoffset(strp, offsetp) in getoffset() argument
733 register const char * strp; in getoffset()
738 if (*strp == '-') {
740 ++strp;
741 } else if (*strp == '+')
742 ++strp;
743 strp = getsecs(strp, offsetp);
744 if (strp == NULL)
748 return strp;
759 getrule(strp, rulep) in getrule() argument
760 const char * strp; in getrule()
763 if (*strp == 'J') {
768 ++strp;
769 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
770 } else if (*strp == 'M') {
775 ++strp;
776 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
777 if (strp == NULL)
779 if (*strp++ != '.')
781 strp = getnum(strp, &rulep->r_week, 1, 5);
782 if (strp == NULL)
784 if (*strp++ != '.')
786 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
787 } else if (is_digit(*strp)) {
792 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
794 if (strp == NULL)
796 if (*strp == '/') {
800 ++strp;
801 strp = getsecs(strp, &rulep->r_time);
803 return strp;