摘要: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
摘要: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