Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uw-beaver Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!vax135!cornell!uw-beaver!golde From: golde@uw-beaver (Helmut Golde) Newsgroups: net.lang.c Subject: Re: ANSI draft - seeking to eof Message-ID: <1728@uw-beaver> Date: Mon, 2-Dec-85 19:01:48 EST Article-I.D.: uw-beave.1728 Posted: Mon Dec 2 19:01:48 1985 Date-Received: Thu, 5-Dec-85 05:47:21 EST References: <5400018@prism.UUCP> <189@brl-tgr.ARPA> <107@hadron.UUCP> Reply-To: golde@uw-beaver.UUCP (Helmut golde) Organization: U of Washington Computer Science Lines: 9 One problem that I have noticed on non-UNIX machines (MS-DOS) is that of the newline character. Unlike UNIX, MS-DOS uses two characters CR and LF to mark line boundries. One common way of dealing with this is translating CR-LF pairs into simple LF when reading and doing the reverse when writing. One big drawback is that seeking no longer works as you expect -- seeking over a line bound seeks two characters forward, instead of one in UNIX. Does the ANSI draft have any better solution to this problem, or is this kludge the accepted way of dealing with the problem