Hi all,

I've seen code examples for STR2CSTR that have mallocs and (mostly)
those that don't. Which way is right?

Is

char * first_string = STR2CSTR( passed_in_string);

good enough or should I be running:

char * first_string = malloc (sizeof(passed_in_string) + 1);
strcpy(first_string, passed_in_string);

Thanks,

Jared
http://jaredricardson.net