diff --git a/ORCACDefs/stdio.h b/ORCACDefs/stdio.h index 7afed0b..036496f 100644 --- a/ORCACDefs/stdio.h +++ b/ORCACDefs/stdio.h @@ -99,16 +99,6 @@ extern FILE *stdout; typedef long fpos_t; -/* - * Function declared as a macro - */ - -void rewind(FILE *); -#define rewind(stream) (__fseek((stream),0L,SEEK_SET)) - -/* Private function used in the above macro (not to be used otherwise) */ -int __fseek(FILE *, long, int); - /* * Function declarations */ @@ -142,6 +132,7 @@ int putchar(int); int puts(const char *); int remove(const char *); int rename(const char *, const char *); +void rewind(FILE *); int scanf(const char *, ...); void setbuf(FILE *, char *); int setvbuf(FILE *, char *, int, size_t); diff --git a/cc.notes b/cc.notes index 462690c..f1e10fe 100644 --- a/cc.notes +++ b/cc.notes @@ -1829,6 +1829,8 @@ int foo(int[42]); (Jay Krell, Devin Reade) +190. Calling rewind() should clear the I/O error indicator for the stream (the value returned by ferror()), but it was not doing so. + -- Bugs from C 2.1.0 that have been fixed ----------------------------------- 1. In some situations, fread() reread the first 1K or so of the file.