ec_memory_pretty_mem_amount

March 26, 2020 Contributors

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

Memory Functions