* If state->quiet is false, calls fprintf(fp, fmt, ...), and appends a newline * at the end. */
| 253 | * at the end. |
| 254 | */ |
| 255 | __attribute__((format (printf, 3, 4))) |
| 256 | static void say(const struct am_state *state, FILE *fp, const char *fmt, ...) |
| 257 | { |
| 258 | va_list ap; |
| 259 | |
| 260 | va_start(ap, fmt); |
| 261 | if (!state->quiet) { |
| 262 | vfprintf(fp, fmt, ap); |
| 263 | putc('\n', fp); |
| 264 | } |
| 265 | va_end(ap); |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Returns 1 if there is an am session in progress, 0 otherwise. |
no outgoing calls
no test coverage detected