I have a FATFS filesystem and I open/write/read/close files without problems using stdio.h functions (fopen, fread,ecc..).
I need to truncate a file to a length less than original and I would like to use
Code: Select all
truncate, (const char *, off_t __length);
Code: Select all
~\esp-idf\components\newlib\include\sys/unistd.h
Code: Select all
error: implicit declaration of function 'truncate'
Thanks