util/printf: Expose util_printf_prev_tok

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25753>
This commit is contained in:
Konstantin
2023-10-16 16:51:40 +02:00
committed by Konstantin Seurer
parent d05f8f6146
commit 03379d74ba
2 changed files with 3 additions and 1 deletions

View File

@@ -38,7 +38,7 @@
_CRTIMP int _vscprintf(const char *format, va_list argptr);
#endif
static const char*
const char*
util_printf_prev_tok(const char *str)
{
while (*str != '%')

View File

@@ -37,6 +37,8 @@ typedef struct u_printf_info {
char *strings;
} u_printf_info;
const char *util_printf_prev_tok(const char *str);
/* find next valid printf specifier in a C string wrapper */
size_t util_printf_next_spec_pos(const char *str, size_t pos);