Mail Archives: djgpp/1997/10/19/13:19:00
Ruiter de M wrote:
> Jonathan Foster (jgf1 AT ukc DOT ac DOT uk) wrote:
> : you should fopen DOS's "NULL" file to send the output to.
>
> You mean NUL. Not very portable solution.
Sorry about the typo!
> : (I think the UNIX equivalent is "/dev/nul", but I've never
> : used UNIX.)
>
> That's "/dev/null" or "/dev/zero". Works for DJGPP too, automagicly :)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thanks for pointing this out! Saves loads of #defines and #ifdefs.
I should have known this, bearing in mind how closely DJGPP is tied
to UNIX, and how it's designed to make porting from UNIX easy.
>
> Groeten, Michel. http://www.cs.vu.nl/~mdruiter
--
Jon Foster.
(1st Year Maths/Computer Science Student)
- Raw text -