CERT C Secure Coding Standard | ERR30-C. Set errno to zero before calling a library function known to set errno, and check errno only after the function returns a value indicating failure |
SEI CERT C++ Coding Standard | CON00-CPP. Avoid assuming functions are thread safe unless otherwise specified |