This is a bit old, but errno – manual section 3 says that you can directly assign to it, even though it is a macro, and it will be thread local
This is a bit old, but errno – manual section 3 says that you can directly assign to it, even though it is a macro, and it will be thread local