Article View: comp.sys.super
Article #42Re: calloc on Convex C-220
From: Dan Shelton
Date: Tue, 04 Aug 1992 00:53
Date: Tue, 04 Aug 1992 00:53
37 lines
1692 bytes
1692 bytes
In article <dale.712880595@convex.convex.com> dale@convex.com (Dale Lancaster) writes: > In <1992Aug3.203552.12386@ringer.cs.utsa.edu> dan@ennex1.eng.utsa.edu (Dan Shelton) writes: > > >Is it permissible to do calloc with the number of elements being a > >function, e.g. calloc (a+b-1, sizeof(float))? I have done this on a Cray > >Y-MP, SGI and NeXT but the Convex does not like it. > > >Thanks for the help, > > "sizeof(float)" would be interpreted at compile time by the compiler and > replaced with "4". I have used it in the same manner and it works. > What specifically doesn't work when you try it? > > regards :-) > > dale > -- > ========================================================================== = > Dale M. Lancaster, Mass Storage Marketing Manager, Convex Computer Corp. > (Work) 214-497-4581 (Fax) 214-497-4848 (Internet) dale@convex.com > ========================================================================== = All and everyone, The problem with the calloc was solved thanks to Eric Schnoebelen at Convex in Richardson, TX. Casting the (a+b+1) to unsigned int worked. Thank you all for the responses. Dan
Technical Details
Message-ID:
<1992Aug4.005309.17740@ringer.cs.utsa.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!ringer!newsReferences:
<dale.712880595@convex.convex.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!ringer!news From: dan@ennex1.eng.utsa.edu (Dan Shelton) Newsgroups: comp.sys.super Subject: Re: calloc on Convex C-220 Message-ID: <1992Aug4.005309.17740@ringer.cs.utsa.edu> Date: 4 Aug 92 00:53:09 GMT References: <dale.712880595@convex.convex.com> Sender: news@ringer.cs.utsa.edu Reply-To: dan@ennex1.eng.utsa.edu (Dan Shelton) Organization: Univ of Texas at San Antonio Lines: 37 Nntp-Posting-Host: ennex3.eng.utsa.edu