[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2806.0. "printing with Amy" by SUBURB::BOYDA () Mon Aug 07 1989 15:09

    
    Does anyone know how to output to a printer using Lattice-C i.e
    screen dumps and data as if being written to a file ?
    
    Thanks in adv.
    
    Al.
    
T.RTitleUserPersonal
Name
DateLines
2806.1fopenWJG::GUINEAUOnly obvious to the casual observerMon Aug 07 1989 16:0313
FILE *prt;

prt = fopen("prt:","w");

fprintf(prt,"Damn, another bug!\n");

fclose(prt)




Should work...
2806.2orWJG::GUINEAUOnly obvious to the casual observerMon Aug 07 1989 16:057
Or just dump stdout to the printer as you run:


1> myprog >prt:

Joh