Lines Matching refs:strp

741 getzname(register const char *strp)  in getzname()  argument
745 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' && in getzname()
747 ++strp; in getzname()
748 return strp; in getzname()
761 getqzname(register const char *strp, const int delim) in getqzname() argument
765 while ((c = *strp) != '\0' && c != delim) in getqzname()
766 ++strp; in getqzname()
767 return strp; in getqzname()
778 getnum(register const char *strp, int *const nump, const int min, const int max) in getnum() argument
783 if (strp == NULL || !is_digit(c = *strp)) in getnum()
790 c = *++strp; in getnum()
795 return strp; in getnum()
807 getsecs(register const char *strp, int_fast32_t *const secsp) in getsecs() argument
817 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in getsecs()
818 if (strp == NULL) in getsecs()
821 if (*strp == ':') { in getsecs()
822 ++strp; in getsecs()
823 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs()
824 if (strp == NULL) in getsecs()
827 if (*strp == ':') { in getsecs()
828 ++strp; in getsecs()
830 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs()
831 if (strp == NULL) in getsecs()
836 return strp; in getsecs()
847 getoffset(register const char *strp, int_fast32_t *const offsetp) in getoffset() argument
851 if (*strp == '-') { in getoffset()
853 ++strp; in getoffset()
854 } else if (*strp == '+') in getoffset()
855 ++strp; in getoffset()
856 strp = getsecs(strp, offsetp); in getoffset()
857 if (strp == NULL) in getoffset()
861 return strp; in getoffset()
872 getrule(const char *strp, register struct rule *const rulep) in getrule() argument
874 if (*strp == 'J') { in getrule()
879 ++strp; in getrule()
880 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in getrule()
881 } else if (*strp == 'M') { in getrule()
886 ++strp; in getrule()
887 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in getrule()
888 if (strp == NULL) in getrule()
890 if (*strp++ != '.') in getrule()
892 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
893 if (strp == NULL) in getrule()
895 if (*strp++ != '.') in getrule()
897 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule()
898 } else if (is_digit(*strp)) { in getrule()
903 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); in getrule()
905 if (strp == NULL) in getrule()
907 if (*strp == '/') { in getrule()
911 ++strp; in getrule()
912 strp = getoffset(strp, &rulep->r_time); in getrule()
914 return strp; in getrule()