winapi - returning a buffer in c -
i have couple of questions.
need write program(winapi) create buffer of fixed size, append strings , returns it.
1. possible "main" return buffer? 2. how should create, append string , return it?
not new c, have little experience buffers , strings handling.
thank you!
- is possible "main" return buffer?
no , shouldn't. what should main() return in c , c++?
- how should create, append string , return it?
char astring[fixed_size]; memset(astring, 0, sizeof astring); strcpy(astring, "this string");
Comments
Post a Comment