#: 17716 S12/OS9/68000 (OSK)
12-Mar-93 23:54:18
Sb: #17708-#C help
Fm: Mike Haaland 72300,1433
To: LARRY OLSON 72227,3467 (X)
Hmmm. you SURE STDOUT is defined in ? Normally 'stdout' is defined
but not STDOUT. Lemme explain the difference.
stdin, stdout and stderr are of type FILE *. They are buffered.
#define STDIN 0
#define STDOUT 1
#define STDERR 2
Are path numbers. They are unbuffered paths to the 3 paths that all process
inherit when open. On path numbers you can do certain things, on FILE *
(pointers) you can do others.
FILE *'s you can use fprintf(), fputs() and all the other functions starting
with f.
On paths, you use read(), write(), readln(), lseek(). Don't mix up FILE *'s
and path numbers. They are simular but very different.
Does this make sense?
- Mike -
There is 1 Reply.
|