Original Post
Well I have been thinking about this for a long time, but still didn't find any easy solution. What i wan't to do is that some function would return me a char* string. For example : This is how i wan't it to look. I can use static arrays to return it's value, but I wan't to find another way. Anyone can help ? Tnx in advance :)
#include <stdio.h>
// here it is
??? someFunc()
{
return ???
}
int main()
{
//i wan't to display a result from someFunc
printf(" result = %s",someFunc());
return 0;
}