X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flib%2Fstdio.c;h=af80e51e527efc00897eae04ca6fe6642fd89d1b;hb=2dc702a30822c4773989f3bf5bc730848c0f473c;hp=baefaf0eda12774b36b2aa0eddeb6ad0f87ad20b;hpb=a7f3ab1350076b71020f6fa859a9b2543a12f6e5;p=pintos-anon diff --git a/src/lib/stdio.c b/src/lib/stdio.c index baefaf0..af80e51 100644 --- a/src/lib/stdio.c +++ b/src/lib/stdio.c @@ -463,7 +463,7 @@ parse_conversion (const char *format, struct printf_conversion *c, auxiliary data AUX. The integer converted has absolute value VALUE. If IS_SIGNED is true, does a signed conversion with NEGATIVE indicating a negative value; otherwise does an - unsigned conversion and ignores IS_SIGNED. The output is done + unsigned conversion and ignores NEGATIVE. The output is done according to the provided base B. Details of the conversion are in C. */ static void @@ -515,7 +515,7 @@ format_integer (uintmax_t value, bool is_signed, bool negative, /* Append enough zeros to match precision. If requested precision is 0, then a value of zero is rendered as a null string, otherwise as "0". - If the # flag is used with base 0, the result must always + If the # flag is used with base 8, the result must always begin with a zero. */ precision = c->precision < 0 ? 1 : c->precision; while (cp - buf < precision && cp < buf + sizeof buf - 1)