Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File_fseek returns 0 instead of current position #71

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

File_fseek returns 0 instead of current position #71

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 21 Oct 2014 at 3:49

@GoogleCodeExporter
Copy link
Author

This was fixed with Revision: e78266d5cbc7.
Bug can be closed.
Thank you!

Original comment by [email protected] on 11 Mar 2015 at 6:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant