🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Dan Shelton Mon, 03 Aug 1992 20:35
calloc on Convex C-220
#36
Author: Dan Shelton
Date: Mon, 03 Aug 1992 20:35
9 lines
719 bytes
All and everyone,

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,

Dan (dan@ennex1.eng.utsa.edu)
Re: calloc on Convex C-220
#38
Author: Dale Lancaster
Date: Mon, 03 Aug 1992 22:23
20 lines
1579 bytes
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
===========================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads