[Solved] returning a buffer in c [closed]


  1. Is it even possible for “main” to return a buffer?

No and you shouldn’t. What should main() return in C and C++?

  1. How should I create, append string and return it?
char aString[FIXED_SIZE];
memset(aString, 0, sizeof aString);
strcpy(aString, "This is a string");

solved returning a buffer in c [closed]