In cstring.h file there exists a function:
int strcmp ( const char *s1, const char *s2 )
, but why only the data is constant, isn't it more safe to make both pointer and data constant.In my opinion the correct version of function should be like:
int strcmp ( const char * const s1, const char * const s2 )