Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ames!oliveb!felix!dhw68k!thecloud From: thecloud@dhw68k.cts.com (Ken McLeod) Newsgroups: comp.sys.mac.programmer Subject: Re: C I/O differences (HELP!) Keywords: lseek Message-ID: <17938@dhw68k.cts.com> Date: 5 Jan 89 08:48:50 GMT References: <3023@paris.ics.uci.edu> Reply-To: thecloud@dhw68k.cts.com (Ken McLeod) Organization: Wolfskill residence; Anaheim, CA (USA) Lines: 19 In article <3023@paris.ics.uci.edu> mac@ics.uci.edu (MAC ICS199 ACCOUNT) writes: >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. Remember that MPW C and THINK_C have different-sized ints (MPW's are 32 bits, while THINK's are 16). lseek returns a long int. Could that be the problem? >(jeez, who said C was portable???) The same guys who called it "pleasant, expressive, and versatile" :-) -- ========== ....... ============================================= Ken McLeod :. .: felix!dhw68k!thecloud@ics.uci.edu ========== :::.. ..::: InterNet: thecloud@dhw68k.cts.com //// =============================================