function returns address of local variable [-Wreturn-local-addr] code example
Example: warning: function returns address of local variable [-Wreturn-local-addr]
// Use memory allocation!!
char *str_to_ret = malloc (sizeof (char) * required_size);
// Use memory allocation!!
char *str_to_ret = malloc (sizeof (char) * required_size);