Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!ics.uci.edu!mac From: mac@ics.uci.edu (MAC ICS199 ACCOUNT) Newsgroups: comp.sys.mac.programmer Subject: C I/O differences (HELP!) Keywords: lseek Message-ID: <3023@paris.ics.uci.edu> Date: 4 Jan 89 07:19:08 GMT Sender: news@paris.ics.uci.edu Reply-To: mac@ics.uci.edu (MAC ICS199 ACCOUNT) Organization: University of California, Irvine - Dept of ICS Lines: 18 [coming from a Pascal programmer -- trying to port a C program...] I'm trying to port a relatively simple C program to both ThinkC 3.0+ and MPWC 2.0.2. However, I'm getting two different results during a lseek function. ThinkC seems to adjust the EOF if the lseek is past the current EOF, but MPW gives you an error (trying to seek past end of file). I'd like the same behaviour as Think. Does anyone know of a way to handle this? (I looked through the I/O libraries but couldn't find a function which sets the end of file. My last resort is to convert all the I/O to low level PBxxx calls, but I'd like to avoid that...). Thank to anyone, in advance. (jeez, who said C was portable???) Greg Finnegan mac@ics.uci.edu