Re: Is this doable in MS C?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Thu, 11 Dec 2008 11:36:22 -0500
Tommy <bad@xxxxxxxxxxxxx> wrote:
Igor Tandetnik wrote:
But if you are referring to va_list?
Yes, I do. Your code uses va_arg(argptr, void*) for all arguments,
regardless of their type. But with 64-bit MSVC compiler,
sizeof(void*)=8 while sizeof(int)==4.
but sizeof(int *) would be 8 bytes too.
And this is helpful how? When you do printf("%d", 1), an int is placed
on the stack, not a pointer to int.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- References:
- Is this doable in MS C?
- From: Pavel A.
- Re: Is this doable in MS C?
- From: Alex Blekhman
- Re: Is this doable in MS C?
- From: Pavel A.
- Re: Is this doable in MS C?
- From: Igor Tandetnik
- Re: Is this doable in MS C?
- From: Pavel A.
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- From: Igor Tandetnik
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- From: Ben Voigt [C++ MVP]
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- From: Igor Tandetnik
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- From: Igor Tandetnik
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- From: Igor Tandetnik
- Re: Is this doable in MS C?
- From: Tommy
- Re: Is this doable in MS C?
- From: Igor Tandetnik
- Re: Is this doable in MS C?
- From: Tommy
- Is this doable in MS C?
- Prev by Date: Re: Is this doable in MS C?
- Next by Date: Re: Is this doable in MS C?
- Previous by thread: Re: Is this doable in MS C?
- Next by thread: Re: Is this doable in MS C?
- Index(es):
Relevant Pages
|