Subject: Re: Lseek'ing backwards with SEEK_CUR?
To: Charles M. Hannum <firstname.lastname@example.org>
From: Greg A. Woods <email@example.com>
Date: 12/14/1994 15:34:46
[ On Wed, December 14, 1994 at 03:45:14 (-0500), Charles M. Hannum wrote: ]
> Subject: Re: Lseek'ing backwards with SEEK_CUR?
> *EITHER* way, inserting printf's that indicate current file positions
> [by means of printf("%qd", lseek(fd, 0, SEEK_CUR))] indicate that the
> file pointer is in the correct place.
> Again, if you don't have a prototype, the return value will be taken
> as 32 bits, plus whatever 32 bits of junk happens to be on the stack
> above it.
On the other hand, perhaps type coercion in prototypes gives the
programmer more rope if it is leading to such sloppy programming!
Greg A. Woods
+1 416 443-1734 VE3TCP robohack!woods
Planix, Inc. <firstname.lastname@example.org>; UniForum Canada <email@example.com>