source: buchla-68k/orig/DOC/CFILEIO.TXT@ 6099cac

Last change on this file since 6099cac was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago

Imported original source code.

  • Property mode set to 100755
File size: 3.1 KB
Line 
1Buchla 700 C Library I/O Functions and Macros As of 1987-10-11
2--------------------------------------------- ----------------
3
4agetc(stream) FGETS.C function [2]
5aputc(c, stream) FPUTS.C function [2]
6
7blkrd(fcb, buff, ns) BLKRD.C function [2]
8
9clearerr(stream) STDIO.H macro
10close(fd) CLOSE.C function [3]
11creat(name, mode) OPEN.C function [3]
12
13fclose(stream) PUTC.C function
14feof(stream) STDIO.H macro
15ferror(stream) STDIO.H macro
16fflush(stream) PUTC.C function
17fgets(s, nc, stream) FGETS.C function
18fileno(stream) STDIO.H macro
19flread(buff, llen, stream) FLREAD.C function [2]
20fopen(name, type) FOPEN.C function
21fprintf(stream, fmt, args) FPRINTF.C function
22fputs(s, stream) FPUTS.C function
23fread(buff, size, number, stream) FREAD.C function
24fscanf(stream, fmt, args) FSCANF.C function
25fseek(stream, lpos, mode) FSEEK.C function
26ftell(stream) FTELL.C function
27fwrite(buff, size, number, stream) FWRITE.C function
28
29getc(stream) GETC.C function [1]
30getchar() STDIO.H macro
31getl(stream) GETL.C function [2]
32gets(s) FGETS.C function
33getw(stream) GETW.C function
34
35lseek(stream, lpos, how) LSEEK.C function [3]
36
37open(name, flag, mode) OPEN.C function [3]
38
39posit(stream, upos) POSIT.C function [2]
40printf(fmt, args) FPRINTF.C function
41putc(c, stream) PUTC.C function [1]
42putchar(c) STDIO.H macro
43puterr(c) PUTC.C function
44putl(l, stream) PUTL.C function
45puts(s) FPUTS.C function
46putw(w, stream) PUTW.C function
47
48
49read(fd, buff, ulen) READ.C function [3]
50rename(old, new) RENAME.C function
51
52scanf(fmt, args) FSCANF.C function
53setbuf(stream, buff) SETBUF.C function
54sscanf(string, fmt, args) SCAN.C function
55
56ungetc(c, stream) UNGETC.C function
57unlink(name) UNLINK.C function [3]
58
59write(fd, buff, ulen) WRITE.C function [3]
60
61
62Notes
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)
Note: See TracBrowser for help on using the repository browser.