| delorie.com/archives/browse.cgi | search |
| Date: | Sun, 19 Oct 1997 16:49:48 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | George Foot <mert0407 AT sable DOT ox DOT ac DOT uk> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: sprintf() string length? |
| In-Reply-To: | <628u5q$bki$1@news.ox.ac.uk> |
| Message-ID: | <Pine.SUN.3.91.971019164852.27221H-100000@is> |
| MIME-Version: | 1.0 |
On 17 Oct 1997, George Foot wrote: > One thing I'm not sure of is whether the character count includes expansions > of LF -> CRLF (or is it CR -> CRLF?), which a text file on a DOS system would > do automatically. The count does NOT include the added CR characters, because they are added by the low-level I/O functions, not by `fprintf'. And if you care about this, you could always open /dev/null in binary mode.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |