How can I pass constant values to functions which accept structure arguments?
C has no way of generating anonymous structure values. You will have to use a temporary structure variable or a little structure-building function; see question 14.11 for an example. (gcc provides structure constants as an extension, and the mechanism will probably be added to a future revision of the C Standard.) See also question 4.10.
Related Questions
- How can I pass constant values to functions which accept structure arguments? How can I create nameless, immediate, constant structure values?
- What is the structure of the cell (plasma) membrane and how does its structure relate to its functions?
- How is the 4-level SCF low pass filter used? What functions does it provide?