mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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
This commit is contained in:
parent
81cdb3798c
commit
03b0b1db7b
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue