| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Stdprn |
Hi Kurt,
KK>TT> JH> FILE *printer=fopen("prn","wt")
rather than
KK>TT> JH> FILE *stdprn=fopen("prn","wt")
KK>TT> Well, almost; replace the non-standard "wt" mode string
KK>TT> with simply "w" (and of course, add a semicolon at the
KK>TT> end), and I'll agree :-)
KK> Good point. Where "wt" is supported, it is the default
KK> mode with "w", so the "t" is never necessary
anyway, though
KK> the "wb" is required for binary access on systems supporting
KK> a separate text file format.
On the Compilers I have that support the "t" extension in the fopen()
mode it is possible to change the default open mode to "b" by changing
the setting of the value of the global variable "_fmode" to
"O_BINARY"
from the default of "O_TEXT".
KK>> ] * Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 810 639/252 SEEN-BY: 670/218 @PATH: 440/4 255/1 251/25 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™.