Are Those Functions Thread-safe, I.e. Fprintf() And Fflush()

Home » CentOS » Are Those Functions Thread-safe, I.e. Fprintf() And Fflush()
CentOS 1 Comment

Hi,

I have one question:

Are those functions thread-safe, i.e. fprintf() and fflush() ?

Thanks!

Regard

Andrew

One thought on - 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.