I do C classes and C development since very long time now, and this is the reason why we always recommend to explicitly pass addresses of structures in C, never the structures itself, because the structures get copied otherwise, which means a lot of CPU time and storage waste.
Normally in C you use call by value for read-only parameters and call by reference for parameters that change (that is, you explicitly pass pointers). But with - large - structures, you should pass pointers even if you don't want to change the structure
in the called function. Kind regards Bernd Am 30.06.2013 23:59, schrieb Bernd Oppolzer:
Sorry, arrays not, structures yes. Kind regards Bernd
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
