Thanks vart,

Question answered.

Quote Originally Posted by vart View Post
yes. The programmer when writing code whats to achieve some goal

char* strcpy(char* dst, const char* src);
When I put const here I know, that I want to notify the caller, that src string will not be modified inside my function

When I just start adding additional const without knowing what is the affect - I call it random code

char* const strcpy(char* const dst, const char* const src);
That is what you are do, so it seems. You are putting different parts of the code here and there, just to see if it will compile, without reading previously, what it will do, and without setting some goal, except to get some strage compiler warning...