我是C语言的初学者,正在使用指针和数组。
假设我有以下函数
GetArrayValues(uint8**pValues, uint32 *pNumValues);
其中:
**pValues points to the first element of the array
*pNumValues points to the number of values in the array
让我们假设数组包含100个uint8元素。
现在,每次我调用函数GetArrayValues()
时,我都想把从索引20开始的所有30个元素复制到一个新的数组中:
uint8 myInternalArray[30]
完成此操作的最快方法是什么?
转载请注明出处:http://www.jubohx.com/article/20230508/1603368.html