Marco Paland
80b42fef5f
fix(printf): fixed support of NaN
...
(hot) fixes #37
6 years ago
Marco Paland
bf72dfb8de
Merge pull request #32 from embeddedartistry/master
...
Address warnings in printf.c
6 years ago
Vedran Grudenic
c7fbbfd600
patch for issue #40 (Digit missing from negative numbers in certain cases)
6 years ago
Phillip Johnston
233bfcf45e
Add cast to uintptr to silent the const-cast warning
6 years ago
Marco Paland
c013a0e8d6
fix(printf): fctprintf() must not append null terminator
...
Fixes #39 , references #19
6 years ago
Marco Paland
d974b16eac
fix(readme): fixed compiler switch comment
6 years ago
Marco Paland
3f162dbdd3
chore(readme): updated readme
6 years ago
Marco Paland
d46b3d2b25
chore(printf): cleanup secure strlen() function, added test cases
6 years ago
cz7asm
4b60eb6973
fixing last fix
...
missing function argument
6 years ago
cz7asm
b04d55907f
added length limit for _strlen
...
I wanted the limit specifier for strings (e.g. "%16.s") to be usable in situations when zero termination isn't guaranteed. As a simple fix I added lenght limitation to _strlen.
6 years ago
Marco Paland
0d641bcd9c
Merge remote-tracking branch 'origin/master'
7 years ago
Marco Paland
075da98cb2
chore(readme): updated readme
7 years ago
Marco Paland
893c5056ff
change(printf): removed PRINTF_OVERRIDE_LIBC option
...
Removed the PRINTF_OVERRIDE_LIBC option. Basically this it not necessary and the ptintf() macro define can be used all the time.
7 years ago
Marco Paland
29d136d88d
chore(readme): update readme
7 years ago
Marco Paland
cdba96d82c
perf(printf): check flags outside while loop
7 years ago
Marco Paland
735abbca13
fix(readme): updated compiler switches
7 years ago
Marco Paland
c84f5464ac
chore(catch): update to catch2 2.4.2
7 years ago
Marco Paland
54dfd18543
feat(printf): added PRINTF_OVERRIDE_LIBC support
...
Fixes #16
7 years ago
Marco Paland
cc8f3bc050
refactor(printf): move "printf_config.h" include to header
...
Necessary because PRINTF_OVERRIDE_LIBC is needed in header
Closes #4
7 years ago
Marco Paland
e7f6a916be
Merge pull request #34 from farrrb/inject-config-file
...
Added the possibility to inject a config file.
7 years ago
Marco Paland
67f6780328
Merge pull request #33 from farrrb/fixed-spelling
...
chore(readme): fixed spelling and corrected capital letters in titles
7 years ago
Fabian Zahn
e99ebc4c22
Added the possibility to inject a config file.
7 years ago
Fabian Zahn
1552c5856e
Fixed spelling and corrected capital letters in titles ( https://grammarsherpa.wordpress.com/2011/08/13/capital-letters-in-titles-headline-styling/ ).
7 years ago
Marco Paland
c669417cd0
chore(printf): remove unused flag
...
Credit goes to @phillipjohnston
7 years ago
Marco Paland
f40db9afb6
chore(catch): update to catch2 2.4.1
7 years ago
Marco Paland
50c954121c
chore(printf): small improvments
7 years ago
Marco Paland
3df03358b7
chore(readme): updated readme
7 years ago
Marco Paland
00f2525d1a
feat(printf): add # flag support for %b specifier
...
Closes #29
7 years ago
Marco Paland
25958b9beb
fix(printf): fix hash precision
...
Fixes #31
7 years ago
Marco Paland
c235b5cd6e
chore(readme): update readme
7 years ago
Marco Paland
21a282a2a4
fix(printf): ignore 0 flag for integers if precision is specified
...
Fixes #27
7 years ago
Marco Paland
7075d314a0
fix(printf): zero precision and zero value hash problem
...
Fixes #26
7 years ago
Marco Paland
6dae1687b5
fix(printf): fix negative argument precision
...
Fixes #25
7 years ago
Marco Paland
f8a2be378d
fix(printf): fix broken right-padding in _ftoa
...
Fixes #24
7 years ago
Marco Paland
be30479110
fix(printf): fix trailing field width in itoa conversion
...
Fixes #21
7 years ago
Marco Paland
e6b5331a36
fix(printf): fix floating point precision limit
...
Return the correct count of precision digits now. Fixes #22
7 years ago
Marco Paland
61de9c0cb0
chore(readme): update readme
7 years ago
Marco Paland
deb685e7a9
fix(printf): change char* to void* pointer to avoid cast-align trouble
...
Closes #17 again
7 years ago
Marco Paland
a07b5d4200
fix(test_suite): fix vsnprint() mocking
...
Using a structure as va_arg stack mock is too architecture dependent, using a regular va_list now instead.
7 years ago
Marco Paland
810cb2b290
fix(printf): suppress terminating \0 in printf() output
...
Closes #19
7 years ago
Marco Paland
175e466d92
fix(printf): fix 'expression is constant' warning
7 years ago
Marco Paland
25b02d709f
fix(test_suite): fix vsnprintf va_arg mock test case for x64
7 years ago
Marco Paland
7616d6f5e7
test(test_suite): added vsnprintf() test case
7 years ago
Marco Paland
9fa6e64941
chore(printf): update comments
7 years ago
Marco Paland
23d0687aab
fix(printf): fix argument name in output function wrapper
7 years ago
Marco Paland
a50f1a8369
test(test_suite): modified fctprintf() test case
...
Renamed 'user' to 'arg'
7 years ago
Marco Paland
aa9d7a9a54
Merge pull request #18 from sgoll/fctprintf-user-data
...
feat(printf): add user pointer to fctprintf()
7 years ago
Sebastian Goll
d40951182f
feat(printf): add user pointer to fctprintf()
...
Arbitrary user data can be passed to output function
7 years ago
Marco Paland
0116b74916
refactor(printf): changed oprintf() to fctprintf()
...
fctprintf() is more descriptive for its operation
7 years ago
Marco Paland
9351e5b1ac
refactor(printf): use output function wrapping struct
7 years ago