On Oct 14, 2011, at 09:37, Lloyd Fuller wrote: > You also want to be careful about the parameters. Some C routines expect > values > on the stack (i.e., in-line in the parameter list) and others expect pointers > to > the values with most using a mix. That is typically my problem calling or > getting called from C: getting that sequence straight. > My understanding is that the C standard calls for all parameters to be passed by value. My experience is that IBM's C usually passes parameters by reference except that if a parameter is a pointer it gets passed by value. Go figger.
-- gil