M
Martin
I've searched this newsgroup's archives but couldn't find any posts that
provided any "rule of thumb" recommendations for use of const in function
parameters.
I appreciate there is no need for scalar variables to have const defined,
but how far should it go with pointers?
The Standard Library has functions defined that specify const, for example,
puts(const char *s) but why not go the extra bit and make it puts(const char
* const s)?
Any recommendations with rationale gratefully received.
provided any "rule of thumb" recommendations for use of const in function
parameters.
I appreciate there is no need for scalar variables to have const defined,
but how far should it go with pointers?
The Standard Library has functions defined that specify const, for example,
puts(const char *s) but why not go the extra bit and make it puts(const char
* const s)?
Any recommendations with rationale gratefully received.