Ive been trying to do this for a while
and still cant figure it out, im probably
going about it the wrong way


Code:

int size;
char test[] = "hello world this is a great day";


size = strlen(test);


my_function(test,size);


void my_function(char *string, int sizer)
{


  char new_string[sizer];


return(0);


}

I want to allocate the size of new_string dynamically
can this be done?


Marky_Mark