Mercurial > hg > th-libs
changeset 246:e00b547af1a7
Rename internal function th_vput_itoa() to th_vput_int()
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Feb 2016 18:17:33 +0200 |
parents | c8595941852b |
children | 2fc282c365a8 |
files | th_string.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 16 16:40:31 2016 +0200 +++ b/th_string.c Tue Feb 16 18:17:33 2016 +0200 @@ -111,7 +111,7 @@ // // Simple implementations of printf() type functions // -static int th_vput_itoa(void *ctx, int (*vputch)(void *ctx, const char ch), +static int th_vput_int(void *ctx, int (*vputch)(void *ctx, const char ch), int val, const int radix, const char padMode, const char padChar, const int width, const BOOL unsig, const BOOL upcase, const BOOL sign) { @@ -301,7 +301,7 @@ if ((padMode != '0' && padMode != '-' && padMode != ' ') || prec >= 0) goto out; - if ((ret = th_vput_itoa(ctx, vputch, va_arg(ap, unsigned int), + if ((ret = th_vput_int(ctx, vputch, va_arg(ap, unsigned int), 10, padMode, padChar, width, *fmt == 'u', FALSE, sign)) == EOF) goto out; break; @@ -311,7 +311,7 @@ if ((padMode != '0' && padMode != '-' && padMode != ' ') || prec >= 0) goto out; - if ((ret = th_vput_itoa(ctx, vputch, va_arg(ap, unsigned int), + if ((ret = th_vput_int(ctx, vputch, va_arg(ap, unsigned int), 16, padMode, padChar, width, TRUE, *fmt == 'X', FALSE)) == EOF) goto out; break;