diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-05-15 22:32:51 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-05-15 22:47:36 -0400 |
commit | fe49b2052be8bb9a270b31a0e68ea317f1d88a1f (patch) | |
tree | 4102770c78de8050ccadf29b2657c20d6e311b38 /color.c | |
parent | 71464adaaf62c328cc85b16f49c96f482b3b46f6 (diff) | |
download | bfs-fe49b2052be8bb9a270b31a0e68ea317f1d88a1f.tar.xz |
Add colors to -D tree
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -484,6 +484,12 @@ int cfprintf(CFILE *cfile, const char *format, ...) { } break; + case 'd': + if (fprintf(file, "%d", va_arg(args, int)) < 0) { + goto done; + } + break; + case 's': if (fputs(va_arg(args, const char *), file) == EOF) { goto done; |