aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-16 05:16:55 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-16 05:16:55 +0100
commit04b7fe5ef1f6d605a4bdeec058069f59f2aa238f (patch)
tree0f167fe782f204cf74b61ec0e216248a87caeb51 /include
parentadd intraspacing parameter for humansize and humandur, and interspacing for humandur (diff)
downloadslibc-04b7fe5ef1f6d605a4bdeec058069f59f2aa238f.tar.gz
slibc-04b7fe5ef1f6d605a4bdeec058069f59f2aa238f.tar.bz2
slibc-04b7fe5ef1f6d605a4bdeec058069f59f2aa238f.tar.xz
add interspacing parameter to humansize
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r--include/slibc-human.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/slibc-human.h b/include/slibc-human.h
index 4118625..7d0f1a5 100644
--- a/include/slibc-human.h
+++ b/include/slibc-human.h
@@ -243,6 +243,8 @@ int machinemode(mode_t* restrict, mode_t* restrict, const char* restrict)
* this value should be "" or "-", but in for example Swedish it
* should always be " ". Hence this value is a string rather than
* a booleanic integer.
+ * @param interspacing Spacing between value–unit-pairs. `NULL` for default (" ").
+ * This value should depend on language and context.
* @return Human representation of the file size/offset, `NULL` on error.
* On success, the caller is responsible for deallocating the
* returned pointer, if and only if it is not `buffer`.
@@ -251,7 +253,8 @@ int machinemode(mode_t* restrict, mode_t* restrict, const char* restrict)
* @throws EINVAL If `mode & HUMANSIZE_EXACT` and `detail < 0`.
* @throws ENOMEM The process cannot allocate more memory.
*/
-char* humansize(char*, size_t, size_t, enum humansize_mode, int, const char* restrict, const char* restrict)
+char* humansize(char*, size_t, size_t, enum humansize_mode, int, const char* restrict,
+ const char* restrict, const char* restrict)
__GCC_ONLY(__attribute__((__warn_unused_result__)));
int machinesize(size_t* restrict size, const char* restrict str, enum machinesize_mode mode,