I understand I may create a file full of garbage when I let two users write into the same file at the same time using C's fprintf.
I need a solution to this for a multi-user application that is supposed to write log into a single log file.
Is there a standard strategy to solve this in C? (I suppose this a 'natural' for a production environment)
Any suggestion or link is very welcome.
Regards,
Wim
(rather new to C)
I need a solution to this for a multi-user application that is supposed to write log into a single log file.
Is there a standard strategy to solve this in C? (I suppose this a 'natural' for a production environment)
Any suggestion or link is very welcome.
Regards,
Wim
(rather new to C)