| 338 | */ |
| 339 | |
| 340 | static int /* O - Number of lines */ |
| 341 | count_lines(cups_file_t *fp) /* I - File to read from */ |
| 342 | { |
| 343 | int count; /* Number of lines */ |
| 344 | char line[1024]; /* Line buffer */ |
| 345 | |
| 346 | |
| 347 | for (count = 0; cupsFileGets(fp, line, sizeof(line)); count ++); |
| 348 | |
| 349 | return (count); |
| 350 | } |
| 351 | |
| 352 | |
| 353 | /* |