3 ms·
it would be better to make p a const char* though, so that the code is not casting away the constness of the string literal (which can invoke undefined behaviou
by rcxdude 7mo ago
it would be better to make p a const char* though, so that the code is not casting away the constness of the string literal (which can invoke undefined behaviour, though in practice string literals are going to be in a read-only area of memory anyway).