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.