getCStr#

Fully qualified name: usd_optimize::getCStr

char *usd_optimize::getCStr(const std::string &name)#

Get a new char* from a std::string.

Creates a new char*, the caller owns the memory and is responsible for freeing it. Note this uses malloc, and should be released with free.

Parameters:

name – The string to get a c string for.

Returns:

A new char* the caller now owns.