From a5da886990495903e0c5be222469edd8e52b723a Mon Sep 17 00:00:00 2001 From: yctct Date: Wed, 28 Jan 2026 12:50:16 +0100 Subject: Justify text of README --- README.txt | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'README.txt') diff --git a/README.txt b/README.txt index ce18a02..07bc3a8 100644 --- a/README.txt +++ b/README.txt @@ -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 --------- -- cgit v1.2.3