Reworked functions in print_functions.c, now link works