Skip to content

Instantly share code, notes, and snippets.

@badboy
Created April 28, 2009 11:26
Show Gist options
  • Save badboy/103082 to your computer and use it in GitHub Desktop.
Save badboy/103082 to your computer and use it in GitHub Desktop.
void print_color(char *fontcolor, char *fmt, ...)
{
va_list list;
char msg[1024];
va_start(list, fmt);
vsprintf(msg, fmt, list);
va_end(list);
_printf(fontcolor);
_printf(msg);
_printf(DEFAULT_COLOR);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment