Re: Is this doable in MS C?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages