homepage › Forums › BridgePoint/xtUML Usage and Training › Returning strings from C functions › Reply To: Returning strings from C functions
January 2, 2015 at 10:16 pm
#2457
keithbrown
Keymaster
Option 5.1.6 (Architectural by-ref param) is my favored choice.
– It avoids re-entrancy problems that a static in the callee (or global scope) would have
– It is a (if not the most) common way of handling this problem in C
– It performs well by avoiding unnecessary copying of data