toCharArray()

描述

复制字串中的字元到指定的阵列。

语法


string.toCharArray(buf, len)

参数

string : String 物件 (字串)
buf : 指定的阵列 (char [] 型别)
len : 阵列大小 (unsigned int 型别)

回传

无回传值

See also

String
getBytes()


语法参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.