码迷,mamicode.com
首页 > 移动开发 > 详细

Android iOS fopen and data

时间:2019-09-13 12:56:50      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:lse   led   something   bsp   lan   open   malloc   rest   rom   

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

标签:lse   led   something   bsp   lan   open   malloc   rest   rom   

原文地址:https://www.cnblogs.com/petewell/p/11516476.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!