Character arrays of dynamic (or unknown) length

Hello everyone,

How do I create a character array that can hold any amount of characters? (up to the memory limit, of course)

I'm coming at arduino from less strict languages where memory is dynamically allocated, and I'm having a hard time wrapping my head around the right way to work with dynamically sized content.

malloc works.