Basically what I want is to return a string from a function (or an array in general).
type_string(?) Function_foo(type_string(?) string_foo)
{
......
return String_bar;
}
printf("%s", function_foo(string_foo));
This should give me string_bar
as output. Is that possible? All the questions I've looked at so far, give special usecases and the answers are specific to that.