|
|
1.1 ! root 1: stdio/Changes 11/20/92 ! 2: Substantive changes in new ANSI/iBCS2 compliant stdio library: ! 3: ! 4: The new version of stdio defines the following 41 functions, as in ANSI C: ! 5: clearerr() ! 6: fclose() ! 7: feof() ! 8: ferror() ! 9: fflush() ! 10: fgetc() ! 11: fgetpos() ! 12: fgets() ! 13: fopen() ! 14: fprintf() ! 15: fputc() ! 16: fputs() ! 17: fread() ! 18: freopen() ! 19: fscanf() ! 20: fseek() ! 21: fsetpos() ! 22: ftell() ! 23: fwrite() ! 24: getc() ! 25: getchar() ! 26: gets() ! 27: perror() ! 28: printf() ! 29: putc() ! 30: putchar() ! 31: puts() ! 32: remove() ! 33: rename() ! 34: rewind() ! 35: scanf() ! 36: setbuf() ! 37: setvbuf() ! 38: sprintf() ! 39: sscanf() ! 40: tmpfile() ! 41: tmpnam() ! 42: ungetc() ! 43: vfprintf() ! 44: vprintf() ! 45: ! 46: Of these, the following were not previously defined in COH libc.a: ! 47: fgetpos() ! 48: fsetpos() ! 49: setvbuf() ! 50: tmpfile() ! 51: [Others were added to COHERENT libc.a after 4.0.1, namely v*printf().] ! 52: ! 53: In addition, it defines the following non-ANSI (Unix V7) functions, ! 54: not previously defined in COHERENT libc.a: ! 55: ecvt() ! 56: fcvt() ! 57: gcvt() ! 58: ! 59: Some of the silent effects of the changes to libc.a and <stdio.h>: ! 60: stdio.h Used to define "extern char *malloc();" et al., ! 61: these were also (correctly) defined in <stdlib.h>, ! 62: which is where the definition belongs. ! 63: The new <stdio.h> does not define malloc(), ! 64: programs should #include <stdlib.h> to get its definition. ! 65: printf() et al. COH printf() used formats "%[DOUX]" as meaning "%l[doux]". ! 66: ANSI uses "%X" as same "%x" but printing "0X<digits>" rather ! 67: than "0x<digits>" and does not recognize the other forms. ! 68: rewind() COH defined int rewind(), ANSI defines void rewind(); ! 69: i.e., rewind() no longer returns status. ! 70: scanf() et al. COH recognized "%E" and "%F" as meaning "%le" and "%lf". ! 71: ANSI defines "%E" and "%G" as same as "%e" and "%g", ! 72: requiring an explicit 'l' flag for doubles. ! 73: This is only a partial list, see the ANSI document for more details!
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.