Discussion:
Error reporting
(too old to reply)
Diego Huang
2004-02-01 17:48:39 UTC
Permalink
Hi,

I was wondering, for the labs, do we output error messages to stdout or
stderr? I'm asking this because I think I remember the prof saying that
even if you run the program like "./prg > out.txt", stderr is still the
screen. So it might make a difference for the automarker if we output
error messages to stdout or stderr, since it won't be able to get error
messages in stderr.

Thanks,

Diego
Sean Safarpour
2004-02-01 22:12:53 UTC
Permalink
Hi Diego,

Please use stdout as the output stream for errors. Or you can simply use
printf which uses stdout automatically. You can look at the Marking
Guideline on the website for an example of how to handle errors.

Thanks,

Sean
Post by Diego Huang
Hi,
I was wondering, for the labs, do we output error messages to stdout or
stderr? I'm asking this because I think I remember the prof saying that
even if you run the program like "./prg > out.txt", stderr is still the
screen. So it might make a difference for the automarker if we output
error messages to stdout or stderr, since it won't be able to get error
messages in stderr.
Thanks,
Diego
Continue reading on narkive:
Loading...