MCPcopy Create free account
hub / github.com/git/git / color_vfprintf

Function color_vfprintf

color.c:462–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
463 va_list args, const char *trail)
464{
465 int r = 0;
466
467 if (*color)
468 r += fprintf(fp, "%s", color);
469 r += vfprintf(fp, fmt, args);
470 if (*color)
471 r += fprintf(fp, "%s", GIT_COLOR_RESET);
472 if (trail)
473 r += fprintf(fp, "%s", trail);
474 return r;
475}
476
477int color_fprintf(FILE *fp, const char *color, const char *fmt, ...)
478{

Callers 2

color_fprintfFunction · 0.85
color_fprintf_lnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected