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

Function main

src/fifo.c:135–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134#ifdef TEST
135int main()
136{
137 FIFO_RIG fifo;
138 initFIFO(&fifo);
139
140 const char *str = "Hello, World!\n";
141
142 // Pushing the string onto the FIFO
143 hl_push(&fifo, str);
144
145 // Popping and printing one character at a time
146 int c;
147
148 while ((c = hl_pop(&fifo)) != -1)
149 {
150 printf("%c", c);
151 }
152
153 return 0;
154}
155#endif

Callers 1

neverused.cFile · 0.70

Calls 3

initFIFOFunction · 0.85
hl_pushFunction · 0.85
hl_popFunction · 0.85

Tested by

no test coverage detected