View Single Post
Old 04-21-2005, 09:52   #9 (permalink)
BennieZ
Junior Member
 
Join Date: Jan 2005
Age: 45
Posts: 31
Member: 104514
Status: Offline
Thanks Meter: 1
Quote:
Originally Posted by arsh0r
thanks guys! "&& *(unsigned short*)cFileOutput != 0xFFFE" works, but i can't increment the cFileOutput pointer, f.ex. "cFileOutput += 2;" or "cFileOutput[2]". should i use a const char* instead? i need to access the data that are copied to ram. compiles correctly, but phone crashes with Data_abort. maybe the compiler messes something up...
You can read it into stack if It is a small file.
e.x
Code:
.....
char buf[1024];
......
fread(iFileHandler, buf, iFileSize, &iError);
.....
because i don't known something about X65 memory map, like some can access at 1-byte allign, another must be at 2-byte or 4-byte allign.

Quote:
Originally Posted by arsh0r
another way: does any of these functions return a pointer to the beginning of the file in FFS? single said it won't be fragmented for small files. then i won't have to copy it into ram...
you should not access file skip system file process!
  Reply With Quote
 
Page generated in 0.09370 seconds with 7 queries