WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

freeKB

Returns the amount of free space on the disk in kilobytes (1024 bytes).
Syntax
Disk. freeKB()
 
Parameters
None
Returns
uint32_t
Example
Assuming your disk is called 'disk_sdCard' then:
cout.print_P( PSTR("Free space=") );
cout.print( disk_sdCard.freeKB());
cout.print_P( PSTR("kb\n") );

 

 

Valid XHTML 1.0 Transitional