
* okay, we're here.write out the envelope */ * why bother writing the file if he's not going to print it? */ Printf("\n OK? Press Q to quit, any other key to proceed.") Printf("\n On a LEGAL sized envelope.\n") Printf("Okay, I\'m going to print:\n\n") Printf("Dang! Could not open file, \'envelope_output_file\' for writing.\n") Output = fopen("envelope_output_file", "w") * and currently 56 for the legal envelope */ Int lines_between_return_and_address = 11 Void set_padding(int argc, char *argv) Ĭhar name1, name2, address, city_state_zip PS: I know I'm not supposed to use "gets", but it's for home use and just me, so I did. Works fine, but, tell me, how to I get to the printer w/o going throuph LP(R) in some way? I ended up writing my input to a file and then calling 'mpage | lpr" with the system command.

When I wrote a simple envelope printing program when I changed over from CP/M to Linux (no MS in this house) I could not find how to do that with standard 'C'. Back in my CBASIC days, the command LPRINTER would cause all PRINT statemets to be directed to the printer (LPT:) until you issued the command CONSOLE to return it to the screen (CON:).
