Lines Matching refs:strp

176 static const char *	getzname(const char * strp) ATTRIBUTE_PURE;
177 static const char * getqzname(const char * strp, const int delim)
179 static const char * getnum(const char * strp, int * nump, int min,
181 static const char * getsecs(const char * strp, long * secsp);
182 static const char * getoffset(const char * strp, long * offsetp);
183 static const char * getrule(const char * strp, struct rule * rulep);
680 getzname(strp) in getzname() argument
681 const char * strp; in getzname()
685 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' &&
687 ++strp;
688 return strp;
701 getqzname(register const char *strp, const int delim) in getqzname() argument
705 while ((c = *strp) != '\0' && c != delim) in getqzname()
706 ++strp; in getqzname()
707 return strp; in getqzname()
718 getnum(strp, nump, min, max) in getnum() argument
719 const char * strp; in getnum()
727 if (strp == NULL || !is_digit(c = *strp))
734 c = *++strp;
739 return strp;
751 getsecs(strp, secsp) in getsecs() argument
752 const char * strp; in getsecs()
763 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
764 if (strp == NULL)
767 if (*strp == ':') {
768 ++strp;
769 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
770 if (strp == NULL)
773 if (*strp == ':') {
774 ++strp;
776 strp = getnum(strp, &num, 0, SECSPERMIN);
777 if (strp == NULL)
782 return strp;
793 getoffset(strp, offsetp) in getoffset() argument
794 const char * strp; in getoffset()
799 if (*strp == '-') {
801 ++strp;
802 } else if (*strp == '+')
803 ++strp;
804 strp = getsecs(strp, offsetp);
805 if (strp == NULL)
809 return strp;
820 getrule(strp, rulep) in getrule() argument
821 const char * strp; in getrule()
824 if (*strp == 'J') {
829 ++strp;
830 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
831 } else if (*strp == 'M') {
836 ++strp;
837 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
838 if (strp == NULL)
840 if (*strp++ != '.')
842 strp = getnum(strp, &rulep->r_week, 1, 5);
843 if (strp == NULL)
845 if (*strp++ != '.')
847 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
848 } else if (is_digit(*strp)) {
853 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
855 if (strp == NULL)
857 if (*strp == '/') {
861 ++strp;
862 strp = getsecs(strp, &rulep->r_time);
864 return strp;