FF_PutC()

From FullFAT

Jump to: navigation, search


Puts (writes) a charachter (or byte) into the specified FF_FILE object.

Contents

Prototype

FF_T_SINT32 FF_PutC(FF_FILE *pFile, FF_T_UINT8 pa_cValue);

Back to API.

Parameters

pFile

FF_FILE object from the FF_Open() function.

Return Value

Returns The provided charachter on success. Returns FF_ERR_FILE_NOT_OPENED_IN_WRITE_MODE if file is not in write mode.

Example

#include "fullfat.h"
 
if(FF_PutC(pFile, 'H') == 'H') {
 // Success
}

Back to API.

See Also

Personal tools