1
2
3
4
5
|
INT16 i16ADBuf[4096];
...
memset
(i16ADBuf, 6,
sizeof
(i16ADBuf));
...
|
1
2
3
4
5
6
7
|
INT16 i16ADBuf[4096];
INT16 g_i16ADBuf[4096];
int
pointNum = 205;
...
memcpy
(g_i16ADBuf,i16ADBuf, pointNum);
...
|
1
2
3
4
5
6
7
|
#include <string.h>
//把buf中的前count個字符替換爲ch,並返回buf。
void
*
memset
(
void
*buf,
int
ch,
size_t
count);
//把from中的count個字符拷貝到to中。並返回to
void
*
memcpy
(
void
*to,
const
void
*from,
size_t
count);
|