Subject: Re: A little program I wrote that core dumps. Should it?
To: None <alexander.hayward@lady-margaret-hall.oxford.ac.uk>
From: Jochen Scharrlach <jscharrl@BA-Stuttgart.De>
List: port-arm32
Date: 06/16/1997 08:58:30
Hi,
> void main(void) {
> FILE *f;
> f = fopen("/dev/lpt0");
> while (!feof(f)) putchar(fgetc(f));
> }
A quick look in the (HPUX) manpage shows the following:
FILE *fopen(const char *pathname, const char *type);
so use `fopen("/dev/lpt0", "r")' !
Bye,
Jochen
--
------------------------------------
EMail: jscharrl@ba-stuttgart.de
or: acorn1@ftp.uni-stuttgart.de
------------------------------------