Query disk space properties. More...
#include "int_sizes.h"
Go to the source code of this file.
Functions | |
int | disk_info_get (const char *path, UINT64_T *avail, UINT64_T *total) |
Get the total and available space on a disk. |
Query disk space properties.
int disk_info_get | ( | const char * | path, | |
UINT64_T * | avail, | |||
UINT64_T * | total | |||
) |
Get the total and available space on a disk.
path | A filename on the disk to be examined. | |
avail | A pointer to an integer that will be filled with the available space in bytes. | |
total | A pointer to an integer that will be filled with the total space in bytes. |