Mercurial > hg > th-libs
changeset 249:35cfda75606b
Implement %c.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Feb 2016 18:39:31 +0200 |
parents | 3a2a29f801ed |
children | f4b541e0433e |
files | th_string.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 16 18:21:54 2016 +0200 +++ b/th_string.c Tue Feb 16 18:39:31 2016 +0200 @@ -301,6 +301,13 @@ case 0: return -104; + case 'c': + if (padMode != 0 || width >= 0 || prec >= 0 || sign) + return -105; + if ((ret = vputch(ctx, va_arg(ap, char)) == EOF) + goto out; + break; + case 'u': case 'd': if ((padMode != '0' && padMode != '-' && padMode != ' ') || prec >= 0)