code / print

Lines202 C188 Markdown10 make4
(13 lines)

print - a simple C printing library

This project is a single-file header that defines some functions to make it easy to do formatted text without using printf style specifiers:

print(...) - print text
fprint(file, ...) - print text to file
String(...) - return an allocated string

If you put #define PRINT_COLOR 1 before the import, text will be printed with terminal colors.

1 # print - a simple C printing library
3 This project is a single-file header that defines some functions to make it easy to do formatted text
4 without using printf style specifiers:
6 ```c
7 print(...) - print text
8 fprint(file, ...) - print text to file
9 String(...) - return an allocated string
10 ```
12 If you put `#define PRINT_COLOR 1` before the import, text will be printed with
13 terminal colors.