My ANSI and ISO Standard C reference manual (Plauger and Brodie) has it
listed in <stddef.h> with the comment:

ptrdiff_t( which is the type of the subtract operator when its operands are
both pointers to data objects ).

Althought the book was written in 1989 I still think it applies.

Tanton
 

-----Original Message-----
From: Bryan C. Warnock
To: Gibbs Tanton - tgibbs; '[EMAIL PROTECTED]'
Sent: 10/4/2001 9:41 AM
Subject: Re: replacing INTVAL in memory and register

On Thursday 04 October 2001 10:38 am, Gibbs Tanton - tgibbs wrote:
> INTVAL is used in memory and register to cast a pointer to an integer
for
> mathematical operators.  Instead of using INTVAL I propose we use
> ptrdiff_t or size_t (with my preference being the former).  It would
not
> be used anywhere else, just when we need to do mathematics on
pointers. 
> Both are given by the standard and both should be big enough to hold a
> pointer (although I think only ptrdiff_t is guarenteed to be so...it
is a
> little fuzzy with size_t).
>
> Suggestions, comments, criticisms?

Which standard?  

-- 
Bryan C. Warnock
[EMAIL PROTECTED]

Reply via email to