Skip to main content

ec_memory_pretty_mem_amount

Last updated March 2020

Name

ec_memory_pretty_mem_amount — A utility to render an amount with commas

Synopsis

#include "ec_malloc.h"

| char * **ec_memory_pretty_mem_amount** ( | buf, |   | |   | amount); |   |

char * <var class="pdparam">buf</var>; uint64_t <var class="pdparam">amount</var>;

Description

A utility to render the amount of memory with appropriately placed commas.

Parameters

buf

A character array use dto hold the result.

amount

The amount to render.

Return Value

This function returns buf, NUL terminated and containing a readable amount.

Threading

You can call this function in any thread.

See Also

Was this page helpful?