[FreeRTOS+FAT Standard API Reference]
char *ff_getcwd( char *pcBuffer, size_t xBufferLength );
Writes the name of the current working directory (CWD) to the buffer pointed to by pcBuffer. The name is written as a standard null terminated C string.
A pointer to the buffer into which the name of the
current working directory will be written.
The size (in bytes) of the buffer pointed to by
If the current working directory name was successfully written to pcBuffer then pcBuffer is returned. Otherwise NULL is returned.