[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Robert Bruce Findler <robby+@CMU.EDU>, firstname.lastname@example.org
- Subject: Re: sizeof
- From: email@example.com (Kalman Reti)
- Date: Mon, 10 Jan 1994 15:31:30 -0500
At 1:51 PM 1/10/94 -0500, Robert Bruce Findler wrote:
>Excerpts from internet.listserv.info-mcl: 10-Jan-94 Re: sizeof by Doug
>> >Is there an equivalent of the C sizeof macro in MCL?
>> I don't think so; what would it do?
>It would return the size in bytes of a structure. Earlier I found myself
>making a CTabHandle, by doing something like this:
>(make-record :ColorTable :storage :Handle
> :length (+ (sizeof :ColorTable)
> (* num-colors (sizeof :ColorSpec))))
>But, I couldn't because sizeof is not existant. Is there a better way to
>treat this sort of thing?
>Robby Findler firstname.lastname@example.org
>Carnegie Mellon University Pittsburgh, PA (412) 681-4552
See page 573 of the MCL 2.0 reference manual for a description of record-length.