18 lines
292 B
C
18 lines
292 B
C
|
|
#include <stdarg.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
#include "apfl.h"
|
||
|
|
#include "internal.h"
|
||
|
|
|
||
|
|
void
|
||
|
|
apfl_print_indented(unsigned indent, FILE *f, const char* fmt, ...)
|
||
|
|
{
|
||
|
|
va_list ap;
|
||
|
|
va_start(ap, fmt);
|
||
|
|
while (indent--) {
|
||
|
|
fputs(" ", f);
|
||
|
|
}
|
||
|
|
vfprintf(f, fmt, ap);
|
||
|
|
va_end(ap);
|
||
|
|
}
|