scopedAllocCStringStruct

Allocates a C-style string and returns a CString object. Must be called in a scoped allocation scope.