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

added vsprintf() - sprintf with variable arguments list #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fronders
Copy link

Hi, thanks for the lib!

I know that size-unsafe functions are not to be used. In one of my projects some 3rd party lib used both vsprintf() and vsnprintf(). Which meant that all vsnprintf() were successfully replaced by your implementation, but vsprintf() was used from default newlib (in my case for STM32 MCU). This led to lot of confusion until I discovered there's no vsprintf() implementation.

That's why i added vsprintf() function just so that all of the [v][s][n]printf() options are supported and replaced by the lib.

P. S. I like to use this header file from GitHub to check for banned/unsafe functions :)

@eyalroz
Copy link

eyalroz commented Jun 28, 2021

Hello @fronders ,

I just merged your PR into my fork: eyalroz#3

... and I also added some unit tests so that coverity doesn't frown at you like here. The fork also has some other people's contribution pushed in.

KarlK90 pushed a commit to qmk/printf that referenced this pull request Jul 7, 2022
…ased functions with strength-reduced actual standard library functions.
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.

2 participants