dd %i as an alias for %d for greater compatibility with our *BSD bretheren

Obtained from: NetBSD
Reviewed by: jake, rwatson, bosko
This commit is contained in:
Warner Losh 2002-07-05 18:36:49 +00:00
parent 0ad736e62b
commit e0b7446484

View File

@ -592,6 +592,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
}
break;
case 'd':
case 'i':
base = 10;
sign = 1;
goto handle_sign;