From: Stephen Williams <steve@icarus.icarus.com>
To: axp-list@redhat.com
Subject: Re: GCC 64 bit compliance
Date: Wed, 29 Apr 1998 08:36:26 -0600 [thread overview]
Message-ID: <199804291536.IAA01036@icarus.icarus.com> (raw)
In-Reply-To: Your message of "Wed, 29 Apr 1998 09:33:25 MDT." <199804291533.JAA18562@galileo.apo.nmsu.edu>
brinkmann@nmsu.edu said:
> I thought that the definition of "size_t" was supposed to be the same
> size as a pointer (or memory address).
Minor nit:
The definition of size_t is the type that sizeof returns, and is an
unsigned integral type. There is no mention if the pointer size in the
definition of size_t in the C standard that I have in front of me.
The definition if ptrdiff_t is the signed integral type returned by the
subtraction of two pointers.
That is not to say that the "#define size_t unsigned int" is correct.
It probably is not. Anyhow, the canonical definition is in <stddef.h>
next prev parent reply other threads:[~1998-04-29 16:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-29 15:33 GCC 64 bit compliance brinkmann
1998-04-29 14:36 ` Stephen Williams [this message]
1998-04-29 17:09 ` Michal Jaegermann
1998-04-29 15:48 ` Stephen Williams
1998-04-29 16:22 ` Alexander V. Lukyanov
1998-04-29 16:27 ` Richard Hadsell
1998-04-29 16:45 ` Michal Jaegermann
1998-04-29 17:08 ` Dan Bethe
1998-04-29 17:34 ` Craig Burley
1998-04-29 17:53 ` Uncle George
-- strict thread matches above, loose matches on Subject: below --
1998-04-29 16:53 Alan Wood
1998-04-29 17:18 brinkmann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox