Hello. I have a strange problem.. I have the following code:
Code:
if(rx==NULL)
{
//bla bla
}
else
{
if(ferror(rx) || feof(rx))
{
//bla bla
}
}
And it fails on ferror with sigsev. And if I take out ferror, I it fails on feof. It's the first case of ferror or feof failing like that.. In the man page they say
Quote:
These functions should not fail
|
I am really confused, as the problem only came up recently after making some changes that DO NOT relate in any way with this piece of code. And I don't have a working copy of the program, the newest is ages old.. Can anyone help?