nice_size()

nice_size()#

Convert a file size in bytes to a human-readable string with appropriate units (e.g., KB, MB).

Prototype

PUBLIC const char *nice_size(
    off_t       size
);
        

Parameters

Key

Type

Description

size

off_t

The file size in bytes to convert.


Return Value

Returns a human-readable string representation of the file size.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples