summaryrefslogtreecommitdiff
path: root/apps/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/misc.h b/apps/misc.h
index e31224823d..430afe1a1e 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -19,11 +19,13 @@
19#ifndef MISC_H 19#ifndef MISC_H
20#define MISC_H 20#define MISC_H
21 21
22/* The point of this function would be to return a string of the input data, 22/* Format a large-range value for output, using the appropriate unit so that
23 but never longer than 5 columns. Add suffix k and M when suitable... 23 * the displayed value is in the range 1 <= display < 1000 (1024 for "binary"
24 Make sure to have space for 6 bytes in the buffer. 5 letters plus the 24 * units) if possible, and 3 significant digits are shown. If a buffer is
25 terminating zero byte. */ 25 * given, the result is snprintf()'d into that buffer, otherwise the result is
26char *num2max5(unsigned int bytes, char *max5); 26 * voiced.*/
27void output_dyn_value(char *buf, int buf_size, int value,
28 const unsigned char **units, bool bin_scale);
27 29
28/* Read (up to) a line of text from fd into buffer and return number of bytes 30/* Read (up to) a line of text from fd into buffer and return number of bytes
29 * read (which may be larger than the number of bytes stored in buffer). If 31 * read (which may be larger than the number of bytes stored in buffer). If