Skip to content

Commit

Permalink
list fossil_io_print_color in API
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-coding committed Sep 11, 2024
1 parent 255b874 commit e76e07f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions code/logic/fossil/io/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ void fossil_io_puts(const char *str);
*/
void fossil_io_printf(const char *format, ...);

/**
* Prints a string to the output with a specified color.
*
* @param color The color code to be applied.
* @param str The string to be printed.
*/
void fossil_io_print_color(const char *color, const char *format, ...);

/**
* Prints a character to the output.
*
Expand Down
2 changes: 1 addition & 1 deletion code/logic/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define FOSSIL_IO_BUFFER_SIZE 1024

// Internal utility function for color printing
static void fossil_io_print_color(const char *color, const char *format, ...) {
void fossil_io_print_color(const char *color, const char *format, ...) {
va_list args;
va_start(args, format);
printf("%s", color);
Expand Down

0 comments on commit e76e07f

Please sign in to comment.