c99-snprintf
c99-snprintf copied to clipboard
Portable implementation of snprintf(3), vsnprintf(3), asprintf(3), and vasprintf(3)
Resolves issue #1
Is there a known upper and lower bounds of the exponent, or a LDOUBLE_MAX variable or equivalent (maybe DBL_MAX)? If so, then we could protect against overflow. The cast() function...
Coverity Scan reports an Overflowed return value from function `myround`. ```c static UINTMAX_T myround(LDOUBLE value) { UINTMAX_T intpart = cast(value); //1. Condition (value -= intpart) < 0.5, taking false branch....
Visual Studio 2010 prints the [C4267](https://msdn.microsoft.com/en-us/library/6kck0s93.aspx) conversion warnings on warning level /W3 ``` snprintf.c(723): warning C4267: '=': Konvertierung von 'size_t' nach 'long', Datenverlust möglich snprintf.c(768): warning C4267: '=': Konvertierung von...
Visual Studio 2010 prints the [C4244](https://msdn.microsoft.com/en-us/library/th7a07tz.aspx) conversion warnings on warning level /W3 ``` snprintf.c(1184): warning C4244: '=': Konvertierung von 'long double' in 'unsigned long', möglicher Datenverlust snprintf.c(1436): warning C4244: '=':...
There has not been any new release since v1.1 from 2008. Is there any chance to have a new released version to get the changes from 2014 also in downstream...
It turns out that the tests *fail* on linux on Intel *if* you add the following code: ``` void set_fpu (unsigned int mode) { asm ("fldcw %0" : : "m"...
Hi Holger, Thank you for the nice effort on c99-snprintf, it is really helpful. I found something interesting that you may like, if you try these commands below with latest...