FF_DestroyIOMAN()

From FullFAT

Jump to: navigation, search


Destroys the provided FF_IOMAN object, cleaning up all resources and memory used.

Contents

Prototype

FF_ERROR FF_DestroyIOMAN(FF_IOMAN *pIoman);

Back to API.

Parameters

pIoman

Pointer to an FF_IOMAN object, as returned from the FF_CreateIOMAN() function.

Return Value

FF_DestroyIOMAN() returns an FF_ERROR code. FF_ERR_NONE is returned on success. FF_ERR_NULL_POINTER is returned if the provided pIoman was NULL.

The FF_ERROR code can be passed to the FF_GetErrMessage() function in order to retrieve a meaningful string about the error.

Example

#include "fullfat.h"
 
FF_IOMAN *pIoman;
FF_ERROR Error;
 
pIoman = FF_CreateIOMAN(NULL, 8192, 512, &Error);     // FullFAT uses malloc() to allocate the memory.
 
Error = FF_DestroyIOMAN(pIoman);
 
if(Error) {
    printf("Error destroying FF_IOMAN object: %s\n", FF_GetErrMessage(Error));
}

Back to API.

See Also

Personal tools