This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200 在用sl_FsOpen创建文件的时候 有没有初始化内存

Other Parts Discussed in Thread: CC3200

sl_FsOpen((unsigned char *)USER_FILE_NAME,
FS_MODE_OPEN_CREATE(64, \
_FS_FILE_OPEN_FLAG_COMMIT|_FS_FILE_PUBLIC_WRITE),
ulToken,
lFileHandle);

比如 创建一个64Byte大小的文件  然后向这个文件写数据“123456789”  九个字节 

这个时候 再去读取lRetVal = sl_FsRead(lFileHandle, 0, did_pskBuf, 64);

得到的结果是123456789+其他字符  共64位。

想知道 在创建的时候 怎么把这块内存 给初始化为空,以便于 取到数据是 存入 的  并不受 长度影响。