ec_memory_pretty_mem_amount
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.
- buf
-
A character array use dto hold the result.
- amount
-
The amount to render.
This function returns buf
, NUL terminated and containing a readable amount.
You can call this function in any thread.