write a log file
I do not even know where to start. How do I create a log file where after executing some client-server communication user can read what kind of info exchange was performed. I'm writing this in C.
Any introductory comments where to look for info???
That's not what I meant. Thanks anyway.
I have no problems with files manipulation in C. My question is what I need to write to a log file of that type and if fprintf is what I'm looking for. The client does not do much. Just sends some info entered by user and waits for servers response and data.
Linux has for example a specific API for creating log files.
Yes, you can just use fprintf() if you want to.
Thanks Salem. Client is on Red Hat 7.2, but server is on SunOS 5.10 if I remember correctly the version number. Would it make a difference?