scopedAllocCString

Allocates a C-style string and returns the pointer to it. Must be called in a scoped allocation scope.