diff options
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -495,12 +495,28 @@ int cfprintf(CFILE *cfile, const char *format, ...) { } break; + case 'g': + if (fprintf(file, "%g", va_arg(args, double)) < 0) { + goto done; + } + break; + case 's': if (fputs(va_arg(args, const char *), file) == EOF) { goto done; } break; + case 'z': + ++i; + if (*i != 'u') { + goto invalid; + } + if (fprintf(file, "%zu", va_arg(args, size_t)) < 0) { + goto done; + } + break; + case 'P': if (print_path(cfile, va_arg(args, const struct BFTW *)) != 0) { goto done; |