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);
692 getzname(strp)
693 const char * strp;
697 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' &&
699 ++strp;
700 return strp;
713 getqzname(register const char *strp, const int delim)
717 while ((c = *strp) != '\0' && c != delim)
718 ++strp;
719 return strp;
730 getnum(strp, nump, min, max)
731 const char * strp;
739 if (strp == NULL || !is_digit(c = *strp))
746 c = *++strp;
751 return strp;
763 getsecs(strp, secsp)
764 const char * strp;
775 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
776 if (strp == NULL)
779 if (*strp == ':') {
780 ++strp;
781 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
782 if (strp == NULL)
785 if (*strp == ':') {
786 ++strp;
788 strp = getnum(strp, &num, 0, SECSPERMIN);
789 if (strp == NULL)
794 return strp;
805 getoffset(strp, offsetp)
806 const char * strp;
811 if (*strp == '-') {
813 ++strp;
814 } else if (*strp == '+')
815 ++strp;
816 strp = getsecs(strp, offsetp);
817 if (strp == NULL)
821 return strp;
832 getrule(strp, rulep)
833 const char * strp;
836 if (*strp == 'J') {
841 ++strp;
842 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
843 } else if (*strp == 'M') {
848 ++strp;
849 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
850 if (strp == NULL)
852 if (*strp++ != '.')
854 strp = getnum(strp, &rulep->r_week, 1, 5);
855 if (strp == NULL)
857 if (*strp++ != '.')
859 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
860 } else if (is_digit(*strp)) {
865 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
867 if (strp == NULL)
869 if (*strp == '/') {
873 ++strp;
874 strp = getsecs(strp, &rulep->r_time);
876 return strp;