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

Better documentation for putc callback #241

Open
charlesnicholson opened this issue Jan 31, 2023 · 2 comments
Open

Better documentation for putc callback #241

charlesnicholson opened this issue Jan 31, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@charlesnicholson
Copy link
Owner

The readme doesn't give an example of the actual npf_putc callback, just how to call nanoprintf with a callback.

Add an actual callback, with use of the context pointer, to the readme to make it clearer.

@charlesnicholson charlesnicholson added documentation Improvements or additions to documentation good first issue Good for newcomers labels Jan 31, 2023
@charlesnicholson
Copy link
Owner Author

Additionally, give an example of a variadic user-defined print function that forwards to npf_vpprintf, to show how a per-byte callback setup might work.

@charlesnicholson
Copy link
Owner Author

follow-up from #240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant