🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1480

Re: BC++2.0 lseek problem(ALSO:lseek() question)

#1480
From: Joe Wright
Date: Sun, 13 Sep 1992 04:38
13 lines
1085 bytes
Using open() and read() and lseek() will usually guarantee
non-portability.  These are OS functions, not C functions.
More specifically, they are Unix functions and not MSDOS
functions.  I strongly reccommend fopen(), fseek(), etc.

That aside, the main reason that seek doesn't work the same
on Unix text files and DOS text files is that DOS uses two
characters, \r\n, to terminate a line while Unix uses only \n.
So the DOS text file has a few more characters in it than
the Unix one.

-- 
Joe Wright  alpha@waggen.twuug.com  alpha@wyvern.twuug.com
Technical Details
Message-ID: <1992Sep13.043839.8659@waggen.twuug.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!news.larc.nasa.gov!daffodil!wyvern!waggen!alpha
References: <1992Sep13.011428.25100@eng.ufl.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.lang.c
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!news.larc.nasa.gov!daffodil!wyvern!waggen!alpha
From: alpha@waggen.twuug.com (Joe Wright)
Subject: Re: BC++2.0 lseek problem(ALSO:lseek() question)
Message-ID: <1992Sep13.043839.8659@waggen.twuug.com>
Organization: ALPHA, Box 68621, Va. Beach, VA 23455
X-Newsreader: Tin 1.1 PL5
References: <1992Sep13.011428.25100@eng.ufl.edu>
Distribution: usa
Date: Sun, 13 Sep 1992 04:38:39 GMT
Lines: 13