#include "cio.h" void cprint(const char *format) { printf("%s", format); } void cprintln(const char *format) { int old_len = strlen(format); int new_len = old_len + 2; char* content = malloc(new_len); if (content == NULL) { fprintf(stderr, "Failed to allocate Memory\n"); return; } strcpy(content, format); strcat(content, "\n"); printf("%s", content); free(content); }