FabGL
ESP32 Display Controller and Graphics Library

◆ truncate()

bool truncate ( char const *  name,
size_t  size 
)

Truncates a file to the specified size.

Parameters
nameRelative file name
sizeNew size in bytes
Returns
Returns true on success.

Definition at line 1045 of file fabutils.cpp.