not supporting %c is confusing and it only uses up a few bytes.
This commit is contained in:
parent
6b4168a18a
commit
01592c7cfe
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: xprintf.c,v 1.17 2004/10/22 05:39:57 skrll Exp $ */
|
||||
/* $NetBSD: xprintf.c,v 1.18 2005/04/24 21:11:58 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 Matt Thomas <matt@3am-software.com>
|
||||
@ -29,7 +29,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: xprintf.c,v 1.17 2004/10/22 05:39:57 skrll Exp $");
|
||||
__RCSID("$NetBSD: xprintf.c,v 1.18 2005/04/24 21:11:58 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <string.h>
|
||||
@ -177,6 +177,12 @@ va_arg(ap, unsigned int))
|
||||
fmt += 2;
|
||||
break;
|
||||
}
|
||||
case 'c':{
|
||||
int c = va_arg(ap, int);
|
||||
*bp++ = (char)c;
|
||||
fmt += 2;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
*bp++ = *fmt;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user