MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / scanfc

Function scanfc

tests/ampctl_parse.c:332–352  ·  view source on GitHub ↗

* This scanf works even in presence of signals (timer, SIGIO, ..) */

Source from the content-addressed store, hash-verified

330 * This scanf works even in presence of signals (timer, SIGIO, ..)
331 */
332static int scanfc(FILE *fin, const char *format, void *p)
333{
334 do
335 {
336 int ret = fscanf(fin, format, p);
337
338 if (ret < 0)
339 {
340 if (errno == EINTR)
341 {
342 continue;
343 }
344
345 rig_debug(RIG_DEBUG_ERR, "fscanf: %s\n", strerror(errno));
346 rig_debug(RIG_DEBUG_ERR, "fscanf: parsing '%s' with '%s'\n", (char *)p, format);
347 }
348
349 return ret;
350 }
351 while (1);
352}
353
354
355/*

Callers 1

ampctl_parseFunction · 0.70

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected