FF_Write()
From FullFAT
Writes data to the specified FF_FILE object.
Contents |
Prototype
FF_T_SINT32 FF_Write(FF_FILE *pFile, FF_T_UINT32 ElementSize, FF_T_UINT32 Count, FF_T_UINT8 *buffer);
Back to API.
Parameters
pFile
FF_FILE object from the FF_Open() function.
ElementSize
Size in bytes of a single element to be written.
Count
Count of elements to be written.
buffer
Pointer to a bytewise buffer of data to be written to the file.
NOTE THIS MAY CHANGE IN 1.0.1 to a void * pointer.
Return Value
Returns the number of Elements successfully written.
Example
#include "fullfat.h" FF_T_UINT8 buffer[128]; FF_Write(pFile, 1, 128, buffer); // Write 128 bytes to the file.
Back to API.

