Lines Matching refs:ptr

2082 check_format_type(const char *ptr, int type)  in check_format_type()  argument
2085 if (*ptr == '\0') { in check_format_type()
2095 if (*ptr == '-') in check_format_type()
2096 ptr++; in check_format_type()
2097 if (*ptr == '.') in check_format_type()
2098 ptr++; in check_format_type()
2099 while (isdigit((unsigned char)*ptr)) ptr++; in check_format_type()
2100 if (*ptr == '.') in check_format_type()
2101 ptr++; in check_format_type()
2102 while (isdigit((unsigned char)*ptr)) ptr++; in check_format_type()
2104 if (*ptr++ != 'l') in check_format_type()
2106 if (*ptr++ != 'l') in check_format_type()
2110 switch (*ptr++) { in check_format_type()
2112 switch (*ptr++) { in check_format_type()
2125 switch (*ptr++) { in check_format_type()
2127 switch (*ptr++) { in check_format_type()
2159 if (*ptr == '-') in check_format_type()
2160 ptr++; in check_format_type()
2161 if (*ptr == '.') in check_format_type()
2162 ptr++; in check_format_type()
2163 while (isdigit((unsigned char)*ptr)) ptr++; in check_format_type()
2164 if (*ptr == '.') in check_format_type()
2165 ptr++; in check_format_type()
2166 while (isdigit((unsigned char)*ptr)) ptr++; in check_format_type()
2168 switch (*ptr++) { in check_format_type()
2183 if (*ptr == '-') in check_format_type()
2184 ptr++; in check_format_type()
2185 while (isdigit((unsigned char )*ptr)) in check_format_type()
2186 ptr++; in check_format_type()
2187 if (*ptr == '.') { in check_format_type()
2188 ptr++; in check_format_type()
2189 while (isdigit((unsigned char )*ptr)) in check_format_type()
2190 ptr++; in check_format_type()
2193 switch (*ptr++) { in check_format_type()
2215 char *ptr; in check_format() local
2217 for (ptr = m->desc; *ptr; ptr++) in check_format()
2218 if (*ptr == '%') in check_format()
2220 if (*ptr == '\0') { in check_format()
2238 ptr++; in check_format()
2239 if (check_format_type(ptr, file_formats[m->type]) == -1) { in check_format()
2245 "`%s' in description `%s'", *ptr ? *ptr : '?', in check_format()
2250 for (; *ptr; ptr++) { in check_format()
2251 if (*ptr == '%') { in check_format()
2592 uint32_t *ptr; in apprentice_map() local
2664 ptr = (uint32_t *)(void *)map->p; in apprentice_map()
2665 if (*ptr != MAGICNO) { in apprentice_map()
2666 if (swap4(*ptr) != MAGICNO) { in apprentice_map()
2674 version = swap4(ptr[1]); in apprentice_map()
2676 version = ptr[1]; in apprentice_map()
2706 map->nmagic[i] = swap4(ptr[i + 2]); in apprentice_map()
2708 map->nmagic[i] = ptr[i + 2]; in apprentice_map()