Android iOS fopen and data
Posted petewell
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android iOS fopen and data相关的知识,希望对你有一定的参考价值。
okay...it‘s weired I am not sure it‘s restrict by the OS or something else...
if I want to make a data like this
FILE*l_pFile = fopen("ooxx","r");
int l_iLength = GetFileSize(l_pFile);
void*l_pFileData = malloc(l_iLength);
void*pData = something frome?l_pFileData
while I fetch data from?pData
it crush......it‘s fucking weired...
so I just have to malloc new data for?pData and copy I want to avoid crush...
it‘s quite possible it was crush because malloc...I am not sure.
原文:大专栏 Android iOS fopen and data
以上是关于Android iOS fopen and data的主要内容,如果未能解决你的问题,请参考以下文章