Set errno value in C
In a portion of code I need to check if there are some errors on arguments function or if there is a fscanf
failure.
I have to set the errno value: I will set errno to EINVAL
if there are problems with arguments. But what if i have a failure on fscanf
?
上一篇: 为什么代码以这种方式表现WRT引用返回?
下一篇: 在C中设置errno值