summaryrefslogtreecommitdiff
path: root/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt22
1 files changed, 15 insertions, 7 deletions
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
---------