Path: utzoo!attcan!utgpu!watmath!watdragon!tiger!achowe From: achowe@tiger.waterloo.edu (anthony howe) Newsgroups: comp.sys.atari.st Subject: stdprn problem in Sozobon C -- dlibs Message-ID: <16461@watdragon.waterloo.edu> Date: 18 Sep 89 13:04:39 GMT Sender: daemon@watdragon.waterloo.edu Reply-To: achowe@tiger.waterloo.edu (anthony howe) Distribution: na Organization: U. of Waterloo, Ontario Lines: 48 I have been having trouble with Sozobon C libraries -- dlibs. It seems that if I try and use stdprn to send output to the printer like expect then it goes to the screen yet if I open a PRN: file and use this file stream things work fine. Examples to follow. /* This does not send output to the printer as expected. Instead it goes to the screen. */ #include main() { fprintf( stdprn, "foobar\n" ); } /* This does send output to the printer. */ #include main() { register FILE* prn; prn = fopen( "PRN:", "wb" ); fprintf( prn, "foobar\n" ); } I have looked at the code MAIN.C and the _iob table and nothing seems odd. I've quick glanced over the code for FOPEN.C and OPEN.C, also also printf code right down to WRITE.C. I can't figure what the problem or differences are? Could Dale Schumacker or someone who may have tried to use stdprn tell me what either I'm doing wrong or if there is library fix I missed. - Ant achowe@tiger.waterloo.edu | "Life is not fair. Anyone who tells _ -|-|_ _ | you different is trying to sell you (_\ |\| | | | (_) |\| \/ | something." - The Princess Bride ___/ | disclaimer...