Home
last modified time | relevance | path

Searched refs:str (Results 1 – 6 of 6) sorted by relevance

/pciutils/lib/
H A Dfilter.c41 strcpy(buffer, str); in split_to_fields()
42 str = buffer; in split_to_fields()
51 fields[i++] = str; in split_to_fields()
52 while (*str && *str != sep) in split_to_fields()
53 str++; in split_to_fields()
54 if (!*str) in split_to_fields()
56 *str++ = 0; in split_to_fields()
83 if (!maskp && str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in parse_hex_field()
84 str += 2; in parse_hex_field()
86 while (*str) in parse_hex_field()
[all …]
H A Dwin32-cfgmgr32.c1330 endptr = strchr(str, '&'); in fill_data_from_string()
1331 endptr2 = strchr(str, '\\'); in fill_data_from_string()
1334 len = endptr ? endptr-str : (int)strlen(str); in fill_data_from_string()
1338 sscanf(str, "VEN_%x", &hex) == 1) in fill_data_from_string()
1366 (fmt_validate(str, len, "CC_####") || fmt_validate(str, len, "CC_######")) && in fill_data_from_string()
1388 str = endptr + 1; in fill_data_from_string()
1421 const char *str; in fill_data_from_hardware_ids() local
1477 for (str = hardware_ids; *str != '\0'; str += strlen(str) + 1) in fill_data_from_hardware_ids()
1479 if (strncmp(str, "PCI\\", 4) != 0) in fill_data_from_hardware_ids()
1481 str += 4; in fill_data_from_hardware_ids()
[all …]
/pciutils/compat/
H A Dgetopt.c176 static char *my_index(const char *str, int chr);
183 static int my_strlen(const char *str) in my_strlen() argument
186 while (*str++) in my_strlen()
191 static char *my_index(const char *str, int chr) in my_index() argument
193 while (*str) { in my_index()
194 if (*str == chr) in my_index()
195 return (char *) str; in my_index()
196 str++; in my_index()
/pciutils/
H A Dcommon.c49 xstrdup(const char *str) in xstrdup() argument
51 int len = strlen(str) + 1; in xstrdup()
53 memcpy(copy, str, len); in xstrdup()
H A Dlspci.c756 const char *str; in show_htype_unknown() local
773 str = "\tI/O behind bridge"; in show_htype_unknown()
779 str = "\tPrefetchable memory behind bridge"; in show_htype_unknown()
781 str = "\tMemory behind bridge"; in show_htype_unknown()
786 str = "\tUnknown resource behind bridge"; in show_htype_unknown()
788 show_range(str, base, limit, bits, 0); in show_htype_unknown()
H A Dpciutils.h42 char *xstrdup(const char *str);