Re: Doubt in memcpy() and memset()



Tom St Denis wrote:

Random832 wrote:
yeah, but the size argument changed types. certainly nothing promotes to
a size_t, and there's no guarantee that size_t doesn't promote to
something.

Does it matter? Most platforms won't let you push a char on the stack
anyways (disregarding the fact the standard makes no mention of
"stack").

So from a performance point of view it's moot.

No, but if you are passing an int rather than unsigned char, it
may need to zero-fill the rest of the int before passing it.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@xxxxxxxxx>


.



Relevant Pages