Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <stdio.h> U32 ftell ( FILE* stream); /* file stream */
The function ftell reads the file cursor position. The parameter stream is a file pointer defining the data stream.
The function is included in the library RL-FlashFS. The prototype is defined in the file stdio.h.
fseek
#include <rtl.h> #include <stdio.h> void tst_ftell (void) { U32 fpos; char line[80]; FILE *fin; fin = fopen ("Counter.log","r"); if (fin != NULL) { fgets (&line, sizeof (char), fin); fpos = ftell (fin); // Get position after read operation fclose (fin); } }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.