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:
imp 2002-07-05 18:36:49 +00:00
parent 27f3da3573
commit 9568924023

View File

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