Date: Sun, 19 Oct 1997 16:49:48 +0200 (IST) From: Eli Zaretskii To: George Foot cc: djgpp AT delorie DOT com Subject: Re: sprintf() string length? In-Reply-To: <628u5q$bki$1@news.ox.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.