TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: LARRY OLSON 72227,3467 (X)
from: Mike Haaland 72300,1433
date: 1993-03-12 23:54:18
subject: #17708-#C help

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.