null terminated string
2018-02-11 本文已影响0人
sherrysack
https://stackoverflow.com/questions/2911089/null-terminating-a-string
strlen() can only return the number of bytes before it finds the '\0' character.
输出字符串之前, 必须保证字符串尾部为'\0',其余时候不用在意
https://stackoverflow.com/questions/2911089/null-terminating-a-string
strlen() can only return the number of bytes before it finds the '\0' character.
输出字符串之前, 必须保证字符串尾部为'\0',其余时候不用在意