🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #333

TurboC getimage() function

#333
From: miguel.a.rivera
Date: Fri, 13 Apr 1990 14:09
14 lines
992 bytes
Hi everybody,

I am having problems with the imagesize() function in TurboC. The problem
is that when I use this function the size of the image that the function
return is smaller than the actual size of memory needed to store the
image. After get the size needed, I use malloc() to allocate memory to store 
the image. When I execute getimage() using the pointer returned by malloc as
a buffer, it overwrite some of my memory (and some times CRASH my machine).
Those functions are used for graphic mode. Actually, I am using an EGA card.
Did anybody have the same problem?

Thanks in advance,

Miguel A. Rivera
Technical Details
Message-ID: <14197@cbnewse.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!cbnewse!miguelr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!cbnewse!miguelr
From: miguelr@cbnewse.ATT.COM (miguel.a.rivera)
Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer
Subject: TurboC getimage() function
Keywords: putimage(),imagesize(),getimage()
Message-ID: <14197@cbnewse.ATT.COM>
Date: 13 Apr 90 14:09:10 GMT
Organization: AT&T Bell Laboratories
Lines: 14