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

Function _getmyline

simulators/simtmd710.c:20–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18int vfo, vfo_tx, ptt, ptt_data, ptt_mic, ptt_tune;
19
20int
21_getmyline(int fd, char *buf)
22{
23 char c;
24 int i = 0;
25 memset(buf, 0, BUFSIZE);
26
27 while (read(fd, &c, 1) > 0)
28 {
29 buf[i++] = c;
30
31 if (c == 0x0d) { return strlen(buf); }
32 }
33
34 if (strlen(buf) == 0) { hl_usleep(10 * 1000); }
35
36 return strlen(buf);
37}
38
39#include "sim.h"
40

Callers 1

mainFunction · 0.70

Calls 1

hl_usleepFunction · 0.85

Tested by

no test coverage detected