diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-08-16 13:46:32 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-08-16 13:46:32 +0000 |
commit | 03b0b1db7b9d20d3b0b563becda07c3ef93b85de (patch) | |
tree | 223bd297b61905099e8366fceaaf905385b74a02 /src/pulsecore/core-util.h | |
parent | 81cdb3798c146a577f5b362367137cc93610cba4 (diff) |
add pa_truncate_utf8() function for truncating a string and guaranteeing it stays valid UTF8 afterwards
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1673 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/core-util.h')
-rw-r--r-- | src/pulsecore/core-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index a593317d..88ed23fd 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -94,4 +94,6 @@ int pa_atou(const char *s, uint32_t *ret_u); int pa_snprintf(char *str, size_t size, const char *format, ...); +char *pa_truncate_utf8(char *c, size_t l); + #endif |