FF_GetC()
From FullFAT
Gets a charachter (or byte) from the specified FF_FILE object.
Contents |
Prototype
FF_T_SINT32 FF_GetC(FF_FILE *pFile);
Back to API.
Parameters
pFile
FF_FILE object from the FF_Open() function.
Return Value
Returns a charachter (return >= 0) or byte always a positive or 0 result. Returns -1 on End of File (EOF). Returns -3 on underlying I/O error.
Example
#include "fullfat.h" FF_T_UINT8 buffer[128]; int c = FF_GetC(pFile); if(c >= 0) { printf("The char received was %c\n", (char) c); } else { printf("End of File, or device I/O error\n"); }
Back to API.

