cosmopolitan/test
Gautham a6f65eea7c
Scan fixed-width integers in vcscanf (#424)
When a format string like %2x is provided, the width parameter was read
correctly as 2, but it was not used when decoding the number from the
input string (ie instead of reading 2 characters from the input string,
vcscanf read all the characters).

This change uses the value of width within the number decoding loop to
read fixed number of digits correctly. if width is zero (not provided),
the default of width is set as bits.

Fixes #423
2022-06-26 21:27:07 -07:00
..
dsp Make more fixes and improvements 2022-06-13 11:02:13 -07:00
libc Scan fixed-width integers in vcscanf (#424) 2022-06-26 21:27:07 -07:00
net Make more fixes and improvements 2022-06-13 11:02:13 -07:00
tool Make more fixes and improvements 2022-06-13 11:02:13 -07:00
test.mk Support malloc() on bare metal 2021-02-24 00:53:24 -08:00