| [3ae31e9] | 1 | Buchla 700 C Library I/O Functions and Macros As of 1987-10-11
|
|---|
| 2 | --------------------------------------------- ----------------
|
|---|
| 3 |
|
|---|
| 4 | agetc(stream) FGETS.C function [2]
|
|---|
| 5 | aputc(c, stream) FPUTS.C function [2]
|
|---|
| 6 |
|
|---|
| 7 | blkrd(fcb, buff, ns) BLKRD.C function [2]
|
|---|
| 8 |
|
|---|
| 9 | clearerr(stream) STDIO.H macro
|
|---|
| 10 | close(fd) CLOSE.C function [3]
|
|---|
| 11 | creat(name, mode) OPEN.C function [3]
|
|---|
| 12 |
|
|---|
| 13 | fclose(stream) PUTC.C function
|
|---|
| 14 | feof(stream) STDIO.H macro
|
|---|
| 15 | ferror(stream) STDIO.H macro
|
|---|
| 16 | fflush(stream) PUTC.C function
|
|---|
| 17 | fgets(s, nc, stream) FGETS.C function
|
|---|
| 18 | fileno(stream) STDIO.H macro
|
|---|
| 19 | flread(buff, llen, stream) FLREAD.C function [2]
|
|---|
| 20 | fopen(name, type) FOPEN.C function
|
|---|
| 21 | fprintf(stream, fmt, args) FPRINTF.C function
|
|---|
| 22 | fputs(s, stream) FPUTS.C function
|
|---|
| 23 | fread(buff, size, number, stream) FREAD.C function
|
|---|
| 24 | fscanf(stream, fmt, args) FSCANF.C function
|
|---|
| 25 | fseek(stream, lpos, mode) FSEEK.C function
|
|---|
| 26 | ftell(stream) FTELL.C function
|
|---|
| 27 | fwrite(buff, size, number, stream) FWRITE.C function
|
|---|
| 28 |
|
|---|
| 29 | getc(stream) GETC.C function [1]
|
|---|
| 30 | getchar() STDIO.H macro
|
|---|
| 31 | getl(stream) GETL.C function [2]
|
|---|
| 32 | gets(s) FGETS.C function
|
|---|
| 33 | getw(stream) GETW.C function
|
|---|
| 34 |
|
|---|
| 35 | lseek(stream, lpos, how) LSEEK.C function [3]
|
|---|
| 36 |
|
|---|
| 37 | open(name, flag, mode) OPEN.C function [3]
|
|---|
| 38 |
|
|---|
| 39 | posit(stream, upos) POSIT.C function [2]
|
|---|
| 40 | printf(fmt, args) FPRINTF.C function
|
|---|
| 41 | putc(c, stream) PUTC.C function [1]
|
|---|
| 42 | putchar(c) STDIO.H macro
|
|---|
| 43 | puterr(c) PUTC.C function
|
|---|
| 44 | putl(l, stream) PUTL.C function
|
|---|
| 45 | puts(s) FPUTS.C function
|
|---|
| 46 | putw(w, stream) PUTW.C function
|
|---|
| 47 | |
|---|
| 48 |
|
|---|
| 49 | read(fd, buff, ulen) READ.C function [3]
|
|---|
| 50 | rename(old, new) RENAME.C function
|
|---|
| 51 |
|
|---|
| 52 | scanf(fmt, args) FSCANF.C function
|
|---|
| 53 | setbuf(stream, buff) SETBUF.C function
|
|---|
| 54 | sscanf(string, fmt, args) SCAN.C function
|
|---|
| 55 |
|
|---|
| 56 | ungetc(c, stream) UNGETC.C function
|
|---|
| 57 | unlink(name) UNLINK.C function [3]
|
|---|
| 58 |
|
|---|
| 59 | write(fd, buff, ulen) WRITE.C function [3]
|
|---|
| 60 | |
|---|
| 61 |
|
|---|
| 62 | Notes
|
|---|
| 63 | -----
|
|---|
| 64 |
|
|---|
| 65 | [1] Usually implemented as a macro in Unix systems.
|
|---|
| 66 |
|
|---|
| 67 | The complete list of macros for Unix is:
|
|---|
| 68 |
|
|---|
| 69 | clearerr
|
|---|
| 70 | feof
|
|---|
| 71 | ferror
|
|---|
| 72 | fileno
|
|---|
| 73 | getc
|
|---|
| 74 | getchar
|
|---|
| 75 | putc
|
|---|
| 76 | putchar
|
|---|
| 77 |
|
|---|
| 78 | [2] Additional function, not in Unix systems.
|
|---|
| 79 |
|
|---|
| 80 | [3] System level (unbuffered) I/O functions.
|
|---|
| 81 |
|
|---|
| 82 | [4] The following are used as arguments:
|
|---|
| 83 |
|
|---|
| 84 | args arguments (must match fmt) (... any ...)
|
|---|
| 85 | buff buffer pointer (char *)
|
|---|
| 86 | c character (char)
|
|---|
| 87 | fcb file control block pointer (struct fcb *)
|
|---|
| 88 | fd file designator (int)
|
|---|
| 89 | fmt format string pointer (char *)
|
|---|
| 90 | how file seek type (int)
|
|---|
| 91 | l long (long)
|
|---|
| 92 | len length (int)
|
|---|
| 93 | llen long length (long)
|
|---|
| 94 | lpos long file position offset (long)
|
|---|
| 95 | mode file mode string pointer (char *)
|
|---|
| 96 | name file name pointer (char *)
|
|---|
| 97 | nc number of characters (int)
|
|---|
| 98 | new new file name pointer (char *)
|
|---|
| 99 | ns sector count (int)
|
|---|
| 100 | nw number of words (int)
|
|---|
| 101 | old old file name pointer (char *)
|
|---|
| 102 | pos file position offset (int)
|
|---|
| 103 | s string pointer (char *)
|
|---|
| 104 | size item size (int)
|
|---|
| 105 | stream stream file pointer (FILE *)
|
|---|
| 106 | type type string pointer (char *)
|
|---|
| 107 | ulen unsigned length (unsigned)
|
|---|
| 108 | upos unsigned file position offset (unsigned)
|
|---|
| 109 | number item count (int)
|
|---|
| 110 | w word (int)
|
|---|