C RPC - Just to be sure I'm getting it right
I'm a beginner with C and a beginner with RPC. I need to get a list of strings from my server, so in my xdr file I'm using:http://pastebin.com/ydWiR9Tk
Is it the right thing to achieve this? Also, about the malloc stuff.
As far as I understood, since output is static it remains in memory, so I should free() the memory before reuse that variable in another call but since the size of it is always the same I don't need to do it. Is it right?
This code does work but I'm not too sure about the implementation.
(I omitted the check for the existence of the directory)
Thanks a lot :)