jeudi 2 juillet 2015

returning a buffer in c

I have a couple of questions.
I need to write a program(winapi) that will create a buffer of a fixed size, then append strings to it and returns it.
1. Is it even possible for "main" to return a buffer? 2. How should I create, append string and return it?

I am not new to C, but I have very little experience with buffers and strings handling.
Thank you!

Aucun commentaire:

Enregistrer un commentaire