Skip to content

Conversation

@HansAnderson
Copy link

The tests were also cleaned up (and expanded for precision).

Hans Anderson added 7 commits November 28, 2015 11:27
This makes the printf.c and sprintf.c files easier to diff.
One of the sprintf.c test cases is failing, which needs to be resolved.
All features of precision should work, except that numbers get limited
to 10 or 20 characters for precision (depending on if LONG is
supported). This seemed like a reasonable complexity trade-off, since it
would allow precision-based zero padding to the maximum character width
of the largest integer type.
This standard format string feature allows the width or precision to be
provided as an additional argument.
As a side effect, integer precision is no longer bounded by BF_MAX.
Precision should now be fully compatible with the standard printf.
If zero padding is specified when either left-justify or precision are
used, the zero padding should be ignored. The '*' specifiers can be
integers, where negatives are handled in specific ways. The prec_used
flag is no longer needed with these changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant