
input, output, input/output parameters?????
Quote:
> What are these things? I've never heard of them. How do you tell one
> from the other?
These are not terms from the C standard, but they are sometimes
used to describe the way that functions use their parameters. An
input parameter is one whose argument value at the function's
entry affects the function's behavior; that is, it is used for
input to the function. An output parameter is used for output,
usually by storing a new value into it during the function's
execution. An input/output parameter shares the characteristics
of input and output parameters: its value is used by the
function, then modified.
Usually, in C, output parameters take some kind of pointer type.
Some people like to order function parameters based on the input
or output or i/o category. I often do this myself:
http://www.msu.edu/~pfaffben/writings/blp-stds/blp-stds_9.html