有没有办法获得以null结尾的字符串的大小?
防爆.
char* buffer = "an example"; unsigned int buffer_size; // I want to get the size of 'buffer'
c++
c++ ×1