Function

GLibformat_size_full

Declaration [src]

gchar*
g_format_size_full (
  guint64 size,
  GFormatSizeFlags flags
)

Description [src]

Formats a size.

This function is similar to g_format_size() but allows for flags that modify the output. See GFormatSizeFlags.

Available since:2.30

Parameters

size guint64
 

A size in bytes.

flags GFormatSizeFlags
 

GFormatSizeFlags to modify the output.

Return value

Returns: gchar*
 

A newly-allocated formatted string containing a human readable file size.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.