delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/19/13:19:00

From: Jonathan Foster <jgf1 AT ukc DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sprintf() string length?
Date: Thu, 16 Oct 1997 15:51:57 +0100
Organization: University of Kent at Canterbury, England
Lines: 24
Message-ID: <34462A0D.5D83@ukc.ac.uk>
References: <3 DOT 0 DOT 16 DOT 19971014214406 DOT 2c573b3e AT hem1 DOT passagen DOT se> <3445D623 DOT 605E AT ukc DOT ac DOT uk> <6256nc$jtt$1 AT star DOT cs DOT vu DOT nl>
NNTP-Posting-Host: dhcp3841.ukc.ac.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019