Introduce the pv_strwidth() function so that in future we can add support for escape sequences and UTF-8 in format strings.

This commit is contained in:
Andrew Wood
2024-12-08 17:40:12 +00:00
parent 5c5d53e1d1
commit 4ffdee0002
11 changed files with 95 additions and 78 deletions
+5
View File
@@ -115,6 +115,11 @@ extern size_t pv_strlcat(char *, const char *, size_t);
*/
/*@null@ */ /*@temp@ */ extern void *pv_memrchr(const void *, int, size_t);
/*
* Return the displayed width of a string.
*/
extern size_t pv_strwidth(const char *, size_t);
/*
* Functions relating to elapsed time.
*/