sammielove45 / propgcc

Automatically exported from code.google.com/p/propgcc
1 stars 1 forks source link

File_fseek returns 0 instead of current position #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to get file size of file on SD card:

FILE* fp = fopen("file.nam","rb");
fseek(fp, 0, SEEK_END);
unsigned long size = ftell(fp);

ftell always gets a zero returned on successful call to File_fseek.

(Propeller Activity Board, propellergcc_v1_0_0)

steps to reproduce outlined at 
(http://forums.parallax.com/showthread.php/157861-Having-trouble-with-quot-ftell
()-quot)

Original issue reported on code.google.com by ronsh...@gmail.com on 21 Oct 2014 at 3:49

GoogleCodeExporter commented 8 years ago
This was fixed with Revision: e78266d5cbc7.
Bug can be closed.
Thank you!

Original comment by ronsh...@gmail.com on 11 Mar 2015 at 6:07