diff options
| author | yctct <yctct> | 2026-01-28 12:50:16 +0100 |
|---|---|---|
| committer | yctct <yctct> | 2026-01-28 12:50:16 +0100 |
| commit | a5da886990495903e0c5be222469edd8e52b723a (patch) | |
| tree | 61222a62a9e5928d99398916862f5ec58c1d1ccd /README.txt | |
| parent | 925989f7e7af67d965e2b501a51068acfe449ab0 (diff) | |
Justify text of README
Diffstat (limited to 'README.txt')
| -rw-r--r-- | README.txt | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -6,9 +6,11 @@ Description This is a custom implementation of printf. -I wrote this implementation to carry on learning C and understand what printf does, to an extend. +I wrote this implementation to carry on learning C and understand what printf +does, to an extend. -This is implementation is concerned with the following specifiers only: c, s, i, d, u, x, X, p. +This is implementation is concerned with the following specifiers only: c, s, +i, d, u, x, X, p. Instructions ----------- @@ -45,13 +47,19 @@ and append each of the c files with: Implementation choice --------------------- -ft_printf.c parses the string for the specifier. -When it finds a specifier, a helper function check the character following the specifier against conversion specifier, when the condition is true (i.e. the char following the specifier is a conversion specifier, then the argument pointer is passed to a function that will convert the argument according to the conversion specifier. +ft_printf.c parses the string for the specifier. When it finds a specifier, a +helper function check the character following the specifier against conversion +specifier, when the condition is true (i.e. the char following the specifier is +a conversion specifier, then the argument pointer is passed to a function that +will convert the argument according to the conversion specifier. Possible improvements: -- I could probably merge both functions converting decimal to hexadecimal into a single function. -- At the end of my implement, I added a function, ft_checkpadd.c to check whether the address a pointer is pointing to is zero. I could try to integrate that function elsewhere. +- I could probably merge both functions converting decimal to hexadecimal into + a single function. +- At the end of my implement, I added a function, ft_checkpadd.c to check + whether the address a pointer is pointing to is zero. I could try to +integrate that function elsewhere. - deal with edge case when % is the last char of a string @@ -64,7 +72,7 @@ Some edge cases this implementation takes into account: Relevant projects ----------------- -- tests for printf +- [add URL to printf test] Resources --------- |
