Add %p for printf

This commit is contained in:
Mathieu Maret 2020-07-08 23:03:05 +02:00
parent 5de1c54b61
commit 1230d738a6

View File

@ -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);