Path: utzoo!utgpu!attcan!uunet!lll-winken!ames!ncar!boulder!sunybcs!rutgers!bellcore!faline!thumper!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: What is wrong? Message-ID: <8828@alice.UUCP> Date: 24 Jan 89 21:35:38 GMT References: <2051@ndsuvax.UUCP> Distribution: na Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 13 In article <2051@ndsuvax.UUCP>, numork@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@europa.att.com