🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #4115

stdprn problem in Sozobon C -- dlibs

#4115
From: anthony howe
Date: Mon, 18 Sep 1989 13:04
48 lines
1743 bytes
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 <stdio.h>

main()
{
        fprintf( stdprn, "foobar\n" );
}



/*
	This does send output to the printer.
*/
#include <stdio.h>

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...
Technical Details
Message-ID: <16461@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!watmath!watdragon!tiger!achowe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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