It's a safe bet that in a script this small, the error may be in the actual if statement.
对于这个小脚本,可以很有把握地猜测错误可能出现在实际的if语句中。
The strerror() function isn't necessarily thread-safe; for unknown values, it formats an error message in a static buffer and returns a pointer to that buffer.
strerror() 函数并没有必要是线程安全的;对于未知值,该函数在静态缓冲区中设置错误消息的格式并将指针返回到该缓冲区。
Computation based on this model can be considerably simplified without excessive error and inclines to the safe side.
这一模型可极大地简化计算工作,但却不致引起过大的误差,而且偏于安全。
应用推荐