From 4b30726dd39f779a69955c63811efb99b715bed1 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 11 Nov 2018 17:39:33 +0100 Subject: lavu: add locale-independent sscanf implementation Copied and adopted from musl implementation. * converted all 'long double' to 'double' * removed %m support --- libavutil/avstring.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavutil/avstring.h') diff --git a/libavutil/avstring.h b/libavutil/avstring.h index 04d2695640..37dd4e2da0 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -400,6 +400,12 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, */ int av_match_list(const char *name, const char *list, char separator); +/** + * See libc sscanf manual for more information. + * Locale-independent sscanf implementation. + */ +int av_sscanf(const char *string, const char *format, ...); + /** * @} */ -- cgit v1.2.3