CHashTable 1
Loading...
Searching...
No Matches
fprintf_color.h File Reference

Header file for fprintf_color() function. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ColorCode {
  COLOR_RESET , COLOR_RED , COLOR_GREEN , COLOR_BLUE ,
  COLOR_BOLD_RED
}
 Print colors for printf_color()
 

Functions

void fprintf_color (FILE *stream, ColorCode color_code, const char *format,...)
 Prints a formatted string to stdout in a specified color.
 

Detailed Description

Header file for fprintf_color() function.

Function Documentation

◆ fprintf_color()

void fprintf_color ( FILE *  stream,
ColorCode  color_code,
const char *  format,
  ... 
)

Prints a formatted string to stdout in a specified color.

Parameters
codeThe ColorCode enum value (e.g., COLOR_RED)
formatThe printf-style format string
...The variable arguments for the format string.