Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing fmt in tfp_printf(fmt, ...) to be a const pointer, reduces w… #12

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

trygvis
Copy link

@trygvis trygvis commented Apr 14, 2017

…arnings from the compiler.

o Adding test cases.
This allows %*s where the leading padding is taken from an extra
argument so that this:

    char buf[] = "0123456789";
    printf("%*s", 5, &buf[5]);

yields

    56789
@trygvis trygvis force-pushed the master branch 2 times, most recently from 30ae4f4 to eef97ea Compare February 23, 2018 13:57
This allows %*s where the leading padding is taken from an extra
argument so that this:

    char buf[] = "0123456789";
    printf("'%*s'", 5, &buf[5]);

yields

    '56789'
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