From e76e07fb027655935fb9573fd28a33b445c0b211 Mon Sep 17 00:00:00 2001 From: "Michael Gene Brockus (Dreamer)" Date: Wed, 11 Sep 2024 09:41:19 -0600 Subject: [PATCH] list fossil_io_print_color in API --- code/logic/fossil/io/output.h | 8 ++++++++ code/logic/output.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/code/logic/fossil/io/output.h b/code/logic/fossil/io/output.h index 8739a32..12a4cbe 100644 --- a/code/logic/fossil/io/output.h +++ b/code/logic/fossil/io/output.h @@ -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. * diff --git a/code/logic/output.c b/code/logic/output.c index 2d54718..18e2fc4 100644 --- a/code/logic/output.c +++ b/code/logic/output.c @@ -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);