| 133 | |
| 134 | #ifdef TEST |
| 135 | int 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 |
no test coverage detected