String.c str()
来自YFRobotwiki
c_str()
Converts the contents of a string as a C-style, null-terminated string. Note that this gives direct access to the internal String buffer and should be used with care. In particular, you should never modify the string through the pointer returned. When you modify the String object, or when it is destroyed, any pointer previously returned by c_str() becomes invalid and should not be used any longer.
string.c_str()
none
A pointer to the C-style version of the invoking string.
更多建议和问题欢迎反馈至 YFRobot论坛 |