Date: Wed, 24 Sep 1997 12:37:09 +0300 (IDT) From: Eli Zaretskii To: "Peter J. Farley III" cc: djgpp AT delorie DOT com Subject: Re: Printing on the printer In-Reply-To: <342872c0.5802270@snews.zippo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 24 Sep 1997, Peter J. Farley III wrote: > Use "PRN:" as the filename. Try this: > > #include > #include > > main() > { > FILE *prntr; > > if ((prntr = fopen("PRN:", "w")) == NULL) { > printf("Error %d! %s: %s\n", errno, "PRN:", strerror(errno)); > exit(1); Did you actually try this? "PRN:" fails for me; "PRN" (without the colon) works. DOS knows the device names without the colon, so it's a bad idea to include them when you call `fopen'.