| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | STDPRN |
JH> for (count = 0; count < copies; count++)
JH> {
SA> In here, you could try:
SA> FILE *stdprn=fopen("prn","wt");
JH> fprintf(stdprn, "%s\n", *in_data[0]);
JH> fprintf(stdprn, "%s\n\n\n\n", *in_data[1]);
JH> fprintf(stdprn, "\"%s\"", *in_data[2]);
SA> fclose(stdprn);
JH> }
Woops! If you continually open/close the printer, you could be spooling
seperate jobs - if there is a real device driver receiving your data (such
as the spooler), you could cause a page eject on each fclose! Lots of
wasted paper. Unless, of course, that's what he wants. :-)
---
* Origin: Tanktalus' Tower BBS (1:250/102)SEEN-BY: 396/1 622/419 632/0 371 633/260 267 270 371 634/397 635/506 728 810 SEEN-BY: 639/252 670/218 @PATH: 250/102 201 99 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.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™.