This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: iostat


Steve,


On Wednesday 23 August 2006 18:34, Steve Kargl wrote:
> Don't get me wrong.  I'm not opposed to implementing better 
> error messages.  I think some people fail to see the potential 
> size of the problem. 

No problem to admit, I am one of them. If have no clue 
whatsoever. Just thinking aloud =)


On Wednesday 23 August 2006 19:03, Steve Kargl wrote:
> If we do this (and I'm not necessarily opposed to better error
> messages), then I think we should add new (nonstandard) intrinsic
> procedure, say, iostat_to_msg().
[snip]
> void
> iostat_to_msg(GFC_INTEGER_4 *iostat, char *msg, gfc_charlen_type len)
> {
>    strncpy(msg, strerror(*iostat), len-1);
> }

Isn't this what the perror() extension is about? 
It does not take iostat as argument, but works nevertheless ...


Regards
	Daniel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]