From b2f338e9a91e18f1c66f68364a53985bd4c05997 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 23 May 2002 06:00:49 +0000 Subject: * smallprint.c (__small_vsprintf): Implement '%o' after all these years. --- winsup/cygwin/smallprint.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/smallprint.c') diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c index 97a2b6ce1..d2a365c94 100644 --- a/winsup/cygwin/smallprint.c +++ b/winsup/cygwin/smallprint.c @@ -135,6 +135,9 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap) case 'U': dst = rn (dst, 10, 0, va_arg (ap, long long), len, pad); break; + case 'o': + dst = rn (dst, 8, 0, va_arg (ap, unsigned), len, pad); + break; case 'p': *dst++ = '0'; *dst++ = 'x'; -- cgit v1.2.3