MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / sr_samplecount_string

Function sr_samplecount_string

libsigrok4DSL/strutil.c:162–165  ·  view source on GitHub ↗

* Convert a numeric samplecount value to its "natural" string representation. * * E.g. a value of 16384 would be converted to "16 K" * * @param samplecount. * * @return A malloc()ed string representation of the samplecount value, * or NULL upon errors. The caller is responsible to g_free() the * memory. */

Source from the content-addressed store, hash-verified

160 * memory.
161 */
162SR_API char *sr_samplecount_string(uint64_t samplecount)
163{
164 return sr_si_string_u64(samplecount, " Samples");
165}
166
167/**
168 * Convert a numeric frequency value to the "natural" string representation

Callers 1

gen_headerFunction · 0.85

Calls 1

sr_si_string_u64Function · 0.85

Tested by

no test coverage detected