|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I would like to check the sizeof size_t. Anyone have a suggestion?
Bill |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Bill Cunningham wrote:
> I would like to check the sizeof size_t. Anyone have a suggestion? > sizeof(size_t)? -- Ian Collins. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"Bill Cunningham" <nospam@nspam.com> wrote in message news:bj9pj.6165$qI.2153@trnddc03... > I would like to check the sizeof size_t. Anyone have a suggestion? its a typedef so why can't you just do sizeof(size-t) |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"Ian Collins" <ian-news@hotmail.com> wrote in message news:60klvjF1qsb4fU18@mid.individual.net... > Bill Cunningham wrote: >> I would like to check the sizeof size_t. Anyone have a suggestion? >> > sizeof(size_t)? > It would have to be that obvious ok thanks. Bill |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Bill Cunningham wrote:
> I would like to check the sizeof size_t. Anyone have a suggestion? You may kick yourself when you see how trivial this is: #include <stdio.h> int main(void) { printf("[Output]\n" "For this implementation, sizeof(size_t) is %zu\n", sizeof(size_t)); return 0; } [Output] For this implementation, sizeof(size_t) is 4 |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
MisterE wrote:
> "Bill Cunningham" <nospam@nspam.com> wrote in message > news:bj9pj.6165$qI.2153@trnddc03... >> I would like to check the sizeof size_t. Anyone have a suggestion? > > its a typedef so why can't you just do sizeof(size-t) unless the variable 'size' and 't' are declared, the type of their difference is not very well defined, is it? |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On 2ÔÂ3ÈÕ, ÉÏÎç10ʱ29·Ö, "Bill Cunningham" <nos...@nspam.com> wrote:
> "Ian Collins" <ian-n...@hotmail.com> wrote in message > > news:60klvjF1qsb4fU18@mid.individual.net...> Bill Cunningham wrote: > >> I would like to check the sizeof size_t. Anyone have a suggestion? > > > sizeof(size_t)? > > It would have to be that obvious ok thanks. > > Bill |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Feb 3, 5:06 am, Martin Ambuhl <mamb...@earthlink.net> wrote:
> MisterE wrote: > > "Bill Cunningham" <nos...@nspam.com> wrote in message > >news:bj9pj.6165$qI.2153@trnddc03... > >> I would like to check the sizeof size_t. Anyone have a suggestion? > > > its a typedef so why can't you just do sizeof(size-t) > > unless the variable 'size' and 't' are declared, the type of their > difference is not very well defined, is it? Is it not? #define size 42 #define t 6 As far as I know, 'size' and 't' in my example are not variables. |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
Bill Cunningham wrote:
> > I would like to check the sizeof size_t. Anyone have a suggestion? size_t is a type. Therefore sizof needs it in parenthesis. n = sizeof (size_t); -- [mail]: Chuck F (cbfalconer at maineline dot net) [page]: <http://cbfalconer.home.att.net> Try the download section. -- Posted via a free Usenet account from http://www.teranews.com |
|
![]() |
| Outils de la discussion | |
|
|