From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: David Presotto To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] fseek Date: Fri, 18 Apr 2003 12:22:43 -0400 Topicbox-Message-UUID: 92a1435a-eacb-11e9-9e20-41e7f4b1d025 It's been pointed out to me that the following functions in ape/stdio.h are defined differently than POSIX: extern int fseek(FILE *, long long, int); extern long long ftell(FILE *); extern int snprintf(char *, int, const char *, ...); extern int vsnprintf(char *, int, const char *, va_list); They should have been: extern int fseek(FILE *, long, int); extern long ftell(FILE *); extern int snprintf(char *, size_t, const char *, ...); extern int vsnprintf(char *, size_t, const char *, va_list); I'm going to change them to the standard definitions. To handle 64 bit offsets, the following are now defined: extern int fseeko(FILE *, off_t, int); extern off_t ftello(FILE *);