diff options
author | Karel Zak | 2017-11-22 14:41:10 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-22 14:41:10 +0100 |
commit | 365ed9f639be420aedf11500e6220a8ed0ebf5e8 (patch) | |
tree | 4d3859d660bc42dc9fa074eba36e7f0bb2ab9a75 /include | |
parent | mount: add hint about -t and root perms to the man page (diff) | |
download | kernel-qcow2-util-linux-365ed9f639be420aedf11500e6220a8ed0ebf5e8.tar.gz kernel-qcow2-util-linux-365ed9f639be420aedf11500e6220a8ed0ebf5e8.tar.xz kernel-qcow2-util-linux-365ed9f639be420aedf11500e6220a8ed0ebf5e8.zip |
lib/mbsalign: add mbs_invalid_encode()
Like mbs_safe_encode(), but it does not care about control chars.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mbsalign.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbsalign.h b/include/mbsalign.h index 6bdb50d3f..0c28e6f69 100644 --- a/include/mbsalign.h +++ b/include/mbsalign.h @@ -57,4 +57,7 @@ extern char *mbs_safe_encode(const char *s, size_t *width); extern char *mbs_safe_encode_to_buffer(const char *s, size_t *width, char *buf, const char *safechars); extern size_t mbs_safe_encode_size(size_t bytes); +extern char *mbs_invalid_encode(const char *s, size_t *width); +extern char *mbs_invalid_encode_to_buffer(const char *s, size_t *width, char *buf); + #endif /* UTIL_LINUX_MBSALIGN_H */ |