diff options
| author | David Lamparter <equinox@diac24.net> | 2019-05-12 21:11:30 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-06-03 16:45:01 +0200 |
| commit | bf4d3d80219777e2bc8597f6543203abf49825ee (patch) | |
| tree | 08f75574f2afedc0d9ae0e2991deeff5ac4b1da8 /lib/printf/printflocal.h | |
| parent | 60f1101d29bfa9a3ed261d61a851b35619ea92fe (diff) | |
lib/printf: add extension support
Inspired by the Linux kernel, this allows us to do %pI4 and similar
things.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/printf/printflocal.h')
| -rw-r--r-- | lib/printf/printflocal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/printf/printflocal.h b/lib/printf/printflocal.h index 653baf2a4e..335e09872e 100644 --- a/lib/printf/printflocal.h +++ b/lib/printf/printflocal.h @@ -99,3 +99,7 @@ int _frr_find_arguments(const char *, va_list, union arg **) DSO_LOCAL; #ifdef WCHAR_SUPPORT int _frr_find_warguments(const wchar_t *, va_list, union arg **) DSO_LOCAL; #endif + +/* returns number of bytes consumed for extended specifier */ +ssize_t printfrr_extp(char *, size_t, const char *, int, const void *) DSO_LOCAL; +ssize_t printfrr_exti(char *, size_t, const char *, int, uintmax_t) DSO_LOCAL; |
