disk_info.h File Reference


Detailed Description

Query disk space properties.

#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.


Function Documentation

int disk_info_get ( const char *  path,
UINT64_T *  avail,
UINT64_T *  total 
)

Get the total and available space on a disk.

Parameters:
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.
Returns:
Greater than or equal to zero on success, less than zero otherwise.


Generated on 31 Jul 2013 for cctools by  doxygen 1.4.7