delorie.com/archives/browse.cgi | search |
From: | mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: sprintf() string length? |
Date: | 18 Oct 1997 00:36:04 GMT |
Organization: | Oxford University, England |
Lines: | 17 |
Message-ID: | <62909k$d40$1@news.ox.ac.uk> |
References: | <3 DOT 0 DOT 16 DOT 19971016132047 DOT 34a756c4 AT hem1 DOT passagen DOT se> <628u5q$bki$1 AT news DOT ox DOT ac DOT uk> |
NNTP-Posting-Host: | sable.ox.ac.uk |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On 17 Oct 1997 23:59:54 GMT in comp.os.msdos.djgpp George Foot (mert0407 AT sable DOT ox DOT ac DOT uk) wrote: : The technique isn't to write to a NULL pointer; it's to assign a FILE * to : the filename "NUL" for DOS, or more portably "/dev/nul". Like so: ^ and again: : FILE *fp = fopen ("/dev/nul","wt"); ^ Oops; sorry! That's meant to be "/dev/null", both times. I'm getting carried away with dropping `l's ;). -- George Foot <mert0407 AT sable DOT ox DOT ac DOT uk> Merton College, Oxford
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |