ff_memalloc

The ff_memalloc function is an equivarent or alias of POSIX malloc function.

void* ff_memalloc (
  UINT msize           /* [IN] Size of memory block */
);

Parameter

msize
Size of memory block to allocate in unit of byte.

Return Value

A void type pointer to the allocated memory block. If the memory block could not be allocated, a null pointer is returned and the file function may fail with FR_NOT_ENOUPH_CORE.

QuickInfo

This function is required when FF_USE_LFN = 3. It is intended to be used by FatFs but also application program may use this function.

Return