🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #218

Re: problem with fprintf & DTC

#218
From: Pete Goodwin
Date: Wed, 07 Oct 1992 10:45
17 lines
969 bytes
In article <1992Oct7.143034.11275@waikato.ac.nz>, shunger@waikato.ac.nz writes...
>I'm having a problem with fprintf( using Desktop C
>when printf("%s\n",structure.feild); or printf(stdout,..) the program runs
>correctly

printf(stdout...) won't work, fprintf(stdout, ...) should.

>but when fprintf(file_pointer,...) is used the program aborts with
>run time system error: malloc failed (or something damn close to it)

*	Do you check file_pointer contains anything?

*	Increase your wimpslot - not enough memory.

Pete Goodwin
goodwin@system.enet.dec.com
Technical Details
Message-ID: <1992Oct7.104722.9783@rdg.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!edieng.enet.dec.com!goodwin

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!edieng.enet.dec.com!goodwin
From: goodwin@edieng.enet.dec.com (Pete Goodwin)
Subject: Re: problem with fprintf & DTC
Message-ID: <1992Oct7.104722.9783@rdg.dec.com>
Sender: news@rdg.dec.com (Mr News)
Organization: Digital Equipment Corporation
Date: Wed, 7 Oct 1992 10:45:31 GMT
Lines: 17