tinyprintf icon indicating copy to clipboard operation
tinyprintf copied to clipboard

A tiny printf and sprintf library for small embedded systems

Results 7 tinyprintf issues
Sort by recently updated
recently updated
newest added

# Summary This pull request introduces a CodeQL workflow to enhance the security analysis of this repository. # What is CodeQL CodeQL is a static analysis tool that helps identify...

"char" is treated, at least in many cases, as signed values. Having that field as 1 bit means it can be treated as one sign bit, no data bits. Thus...

I tried changing the test file to: ``` #include ... setlocale(LC_NUMERIC, ""); TPRINTF("%'llu\n", ULLONG_MAX); ``` But the output is: ``` $ make ... libc_printf("%'llu\n", ULLONG_MAX) -> 18,446,744,073,709,551,615 tfp_printf("%'llu\n", ULLONG_MAX) ->...

size_t is provided by the stddef.h header file. This will make tinyprintf compile with the IAR compiler for ARM Cortex-M. I also fixed a fallthrough warning that gcc complains about.

When compiling with `make` I receive warnings about _implicit fallthrough_ in the printf switch case. [Here is the exact line](https://github.com/cjlano/tinyprintf/blob/master/tinyprintf.c#L382) And that's the build log ``` cc -Wall -W -Wextra...

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