Add %p for printf
This commit is contained in:
parent
5de1c54b61
commit
1230d738a6
@ -182,6 +182,7 @@ void vprintf(const char *format, va_list ap)
|
|||||||
printInt(d);
|
printInt(d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'p':
|
||||||
case 'x': {
|
case 'x': {
|
||||||
char val[sizeof(int) * 2];
|
char val[sizeof(int) * 2];
|
||||||
int d = va_arg(ap, int);
|
int d = va_arg(ap, int);
|
||||||
|
Loading…
Reference in New Issue
Block a user