qw
2019-Aug-01 13:36 UTC
[CentOS] Are those functions thread-safe, i.e. fprintf() and fflush()
Hi, I have one question: Are those functions thread-safe, i.e. fprintf() and fflush() ? Thanks! Regard Andrew
Roberto Ragusa
2019-Aug-01 15:15 UTC
[CentOS] Are those functions thread-safe, i.e. fprintf() and fflush()
On 8/1/19 3:36 PM, qw wrote:> Are those functions thread-safe, i.e. fprintf() and fflush() ?"man fprintf" has the answer. "yum install man-pages" if you do not have it installed already. Spoiler: yes, they are thread-safe, but fprintf may act strange if you change your locale while it is running. Regards. -- Roberto Ragusa mail at robertoragusa.it