MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_str_num

Function get_str_num

dpdk/app/test-sad/main.c:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static int
157get_str_num(FILE *f, int num)
158{
159 int n_lines = 0;
160
161 if (f != NULL) {
162 while (fgets(line, sizeof(line), f) != NULL)
163 n_lines++;
164 rewind(f);
165 } else {
166 n_lines = num;
167 }
168 return n_lines;
169}
170
171static int
172parse_file(FILE *f, struct rule *tbl, int rule_tbl)

Callers 1

tbl_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected