有的时候,错误莫名其妙的.可以使用这个方法查找:
1. # include <errno.h> 2. 3. extern int errno; 4. 5. int test() 6. { 7. printf("%d, %s", errno, strerror(errno)); 8. }
有的时候,错误莫名其妙的.可以使用这个方法查找:
1. # include <errno.h> 2. 3. extern int errno; 4. 5. int test() 6. { 7. printf("%d, %s", errno, strerror(errno)); 8. }