2Fermer4
dmwitLe 01/01/2005 à 23:17
Nu
:
I pass a structure (of roughly 22 bytes) to several functions

you pass the structure by value ?
how can you do that ???

Well, I don't know if the "under-the-hood" work actually passes by value, but my C code passes by value, yes. Probably on the stack?
Nu :
if you pass a pointer (4 bytes) it will be faster, but there will be side effects, beware.

What side effects? Do you mean other than the fact that I could accidentally change the value in the calling function as well or some other?

Thanks for the help!
~d