Posted Jun 11, 2008 11:44 UTC (Wed) by Yorick
In reply to: Std C
Parent article: Implications of pure and constant functions
That document is not quite consistent. It defines the attribute stdc_pure to indicate that a function "has no side effects and depends only on the values of the arguments passed". It then gives strlen as an example of such a pure function, contradicting the definition. It is unclear whether stdc_pure would correspond to GCC's const or pure attributes.
to post comments)