Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!news.cs.indiana.edu!ux1.cso.uiuc.edu!timothyg From: timothyg@ncsa.uiuc.edu (Timothy Gallivan) Newsgroups: comp.sys.atari.st Subject: Can GCC treat printer like file? Keywords: gcc Message-ID: <1991Apr19.200801.26887@ux1.cso.uiuc.edu> Date: 19 Apr 91 20:08:01 GMT Sender: usenet@ux1.cso.uiuc.edu (News) Organization: Nat'l Ctr for Supercomp App (NCSA) @ University of Illinois Lines: 16 Originator: timothyg@harriett Hi, here is a question for a real C guru. Does anyone know if gcc can treat the printer like a file? That is, obtain a file descriptor for the printer (fd=fopen(stdprn,..), or something like that), and then write to it using fwrite(...,fd) or putc(fd). I am aware of the TOS print routines, but I am trying to port some MSDOS code which treats the printer like a file. The port will be easier if I cam mimic this in gcc. -Tim Gallivan National Center for Supercomputing Applications University of Illinois timothyg@ncsa.uiuc.edu