What is wrong?

Andrew Koenig ark at alice.UUCP
Wed Jan 25 07:35:38 AEST 1989


In article <2051 at ndsuvax.UUCP>, numork at ndsuvax.UUCP (James Mork) writes:
>   I am using TC 1.5 everything was going OK... Now... when I run
>   a simple program like this, the file gets truncated after 25 or
>   26 bytes...

Some MS-DOS C compilers treat a ^Z character as end of file.

^Z is 0x1A or 032 (octal) or 26 (decimal).  Your program
[not shown here] is putting consecutive characters into the
file, starting from 0.  Looks suspicious.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list