|
>Buck, when a function wants a pointer by value, >you can also pass "something" by reference >(or CONST, aka read-only-reference), since >passing something by reference amounts to passing a >pointer-to-something by value. Thanks Barbara! I knew that, but I get mixed up when looking at the C documentation because I'm not entirely sure how to tell if the parameter is passed by value or by reference. Beyond that, it mixes up newbies when they are looking at documentation calling for a pointer and the parameter list has characters. Yes, I know that "it's the way it works" but I'd rather have the new folks (at least where I work) read a spec and write to it so that their debugging is easier. --buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.