c-template
utils Directory Reference

Files

file  array_len.h [code]
 
file  colors.h [code]
 macros and utilities for printing color to stdout from https://www.quora.com/How-do-I-print-a-colored-output-in-C Pass a COLORS_x enum value into print_colored and the color will be printed on stdout Note that if you want to disable printing of that color you'll have to send the COLORS_RESET enum value through to make non-bold change 0->1 (0;31m red) vs (1;31m bold red)
 
file  command_line.h [code]
 provides a basic CLI building tool attribution note: modified version of commander see deps/commander for the license for that package uses argtable3 for command line configuration and allows loading a list of commands to execute using the --conmmand or -c CLI flag you can specify the command out of the list of commands that have been loaded before calling execute you'll want to load the appropriate argc and argv values for the callback of the command you want to make
 
file  errors.h [code]
 golang like error handling
 
file  logger.h [code]
 a thread safe logger with optional printf style logging
 
file  random.h [code]
 
file  returns.h [code]
 
file  safe_math.h [code]
 
file  safe_mem.h [code]