Lines Matching refs:endptr
35 char *endptr; in get_y_m_d() local
37 endptr = NULL; in get_y_m_d()
38 year = strtol(date_str, &endptr, 10); in get_y_m_d()
39 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
43 date_str = endptr + 1; in get_y_m_d()
45 endptr = NULL; in get_y_m_d()
46 month = strtol(date_str, &endptr, 10); in get_y_m_d()
47 if ((endptr == date_str) || (*endptr != '-')) { in get_y_m_d()
56 date_str = endptr + 1; in get_y_m_d()
58 endptr = NULL; in get_y_m_d()
59 day = strtol(date_str, &endptr, 10); in get_y_m_d()
60 if ((endptr == date_str) || (*endptr != '\0')) { in get_y_m_d()
84 char *endptr; in get_h_m_s() local
89 endptr = NULL; in get_h_m_s()
90 tm->tm_hour = strtol(time_str, &endptr, 10); in get_h_m_s()
91 if (endptr == time_str) { in get_h_m_s()
93 } else if (*endptr == ':') { in get_h_m_s()
99 time_str = endptr + 1; in get_h_m_s()
108 endptr = NULL; in get_h_m_s()
109 tm->tm_min = strtol(time_str, &endptr, 10); in get_h_m_s()
110 if (endptr == time_str) { in get_h_m_s()
112 } else if (*endptr == ':') { in get_h_m_s()
118 time_str = endptr + 1; in get_h_m_s()
124 endptr = NULL; in get_h_m_s()
125 tm->tm_sec = strtol(time_str, &endptr, 10); in get_h_m_s()
126 if ((endptr == time_str) || (*endptr != '\0')) { in get_h_m_s()