Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Interviewing programmers: coding test example explained. Parent comment
Memory management is between you, malloc() and free().
Assuming this were malloc()d memory, if you wanted to free up the unused bytes, you'd probably:
char *condensed = strdup(z_terminated); if (condensed) free(z_terminated); else // out of memory
Memory management is between you, malloc() and free().
Assuming this were malloc()d memory, if you wanted to free up the unused bytes, you'd probably: