int main(void) {
"\n",
"This is a plain line.",
Colr(
"This one is some kind of purple.",
fore(
rgb(125, 0, 155))),
"Another plain one, why not?"
);
if (!colorized) return 1;
printf("%s\n", colorized);
free(colorized);
"This",
"the other."
);
if (!final) return 1;
printf("%s\n", final);
free(final);
" ",
"[",
"]"
),
Colr(
"This combination of calls should never leak.",
fore(RED))
)
);
char* joiner = " [and] ";
NULL
};
if (!s) {
for (
size_t i = 0; words[i]; i++)
colr_free(words[i]);
return 1;
}
printf("%s\n", s);
free(s);
for (
size_t i = 0; words[i]; i++)
colr_free(words[i]);
}