MCPcopy Create free account
hub / github.com/OpenPrinting/cups / count_lines

Function count_lines

cups/testfile.c:340–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 */
339
340static int /* O - Number of lines */
341count_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/*

Callers 1

mainFunction · 0.85

Calls 1

cupsFileGetsFunction · 0.85

Tested by

no test coverage detected