Home | History | Annotate | Download | only in src

Lines Matching refs:line

77   char line[1024];
98 /* for each line we found in the pci.ids*/
99 while ( fgets(line, sizeof line, f) ) {
101 if ((line[0] == '#') || (line[0] == ' ') || (line[0] == 'C') ||
102 (line[0] == 10))
105 /* If the line doesn't start with a tab, it means that's a vendor id */
106 if (line[0] != '\t') {
109 strlcpy(vendor_id,line,4);
113 strlcpy(vendor,skipspace(strstr(line," ")),255);
124 } else if ((line[0] == '\t') && (line[1] != '\t')) {
127 strlcpy(product,skipspace(strstr(line," ")),255);
133 strlcpy(productvendor+4,&line[1],4);
141 } else if ((line[0] == '\t') && (line[1] == '\t')) {
144 strlcpy(product,skipspace(strstr(line," ")),255);
149 strlcpy(productvendorsub+8, &line[2],4);
150 strlcpy(productvendorsub+12, &line[7],4);