Hi all
I'm hoping that someone can shed some light upon the the usage of the
nerr parameter in the rsac...() function
Reading the SAC manual, section :"SAC Reading and Writing Routines", I
got the impression that this parameter could be used to check the
success/failure to read a file (0 - success, else failure), yet when I
try to read a non-valid SAC file (i.e. which should fail) nerr is 0 upon
return, which later in my code causes an annoying segmentation fault as
I have no other way to check that the file were properly read.
Now, have I perhaps misunderstood the usage of nerr or may this be a bug
worth reporting?
(I'm runing SAC-101.6a, built 10/14/2014 from source on Linux)
Best regards Peter
--
********************************************************************************
Peter Schmidt Tel: +46-18-4712259
Swedish National Seismic Network (SNSN) Mobile: +46-73-3190975
Dept. of Earth Sciences:geophysics e-mail: peter.schmidt<at>geo.uu.se
Uppsala University
Villavagen 16
SE-75236 Uppsala
********************************************************************************
I'm hoping that someone can shed some light upon the the usage of the
nerr parameter in the rsac...() function
Reading the SAC manual, section :"SAC Reading and Writing Routines", I
got the impression that this parameter could be used to check the
success/failure to read a file (0 - success, else failure), yet when I
try to read a non-valid SAC file (i.e. which should fail) nerr is 0 upon
return, which later in my code causes an annoying segmentation fault as
I have no other way to check that the file were properly read.
Now, have I perhaps misunderstood the usage of nerr or may this be a bug
worth reporting?
(I'm runing SAC-101.6a, built 10/14/2014 from source on Linux)
Best regards Peter
--
********************************************************************************
Peter Schmidt Tel: +46-18-4712259
Swedish National Seismic Network (SNSN) Mobile: +46-73-3190975
Dept. of Earth Sciences:geophysics e-mail: peter.schmidt<at>geo.uu.se
Uppsala University
Villavagen 16
SE-75236 Uppsala
********************************************************************************