| delorie.com/archives/browse.cgi | search |
| From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Linear Success! |
| Date: | Thu, 10 Jul 1997 17:22:58 -0400 |
| Organization: | Cornell University http://www.cornell.edu |
| Lines: | 23 |
| Sender: | asu1 AT cornell DOT edu (Verified) |
| Message-ID: | <33C552B2.77F5@cornell.edu> |
| References: | <33C4B1E4 DOT 740D AT frugal DOT com> <33C50405 DOT 3FC8 AT frugal DOT com> |
| Reply-To: | asu1 AT cornell DOT edu |
| NNTP-Posting-Host: | cu-dialup-0036.cit.cornell.edu |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Carl B wrote:
>
> Carl B wrote:
> >
>
> unsigned char* ScrPtr = (unsigned char*)
> malloc((long)TrLinearInfo.size); // Allocate Linear Buffer
picky me ... malloc's size parameter is supposed to be size_t. AFAIK, in
djgpp, it is unsigned long. however, you cannot count on such things.
that is why you should use size_t.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |