求助:有关字符串拷贝函数
CopyString (tt, 0, buf, 2, 6);请问那位能告诉我上面这个函数各个参数的含义吗?虽然看了cvi里面的帮助 但还是有些不是很明白! buf是从串口读到的数据. Copies the string that starts at position sourceIndex of sourceString to position targetIndex of targetString. CopyString stops copying when it encounters an ASCII NUL byte or when it has copied maximum#Bytes bytes. CopyString appends an ASCII NUL if it did not copy an ASCII NUL.
Prototype
void CopyString (char Target_String[], int Target_Index, char Source_String[], int Source_Index, int Maximum_Bytes); 意思是说:将源字符串的从sourceIndex这个字节算起的字符开始拷贝,一直到最后面为止的字符,拷贝到目标字符串的targetIndex开始的位置中去!好运!
页:
[1]