iostat

Daniel Franke franke.daniel@gmail.com
Wed Aug 23 17:53:00 GMT 2006


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



More information about the Fortran mailing list