Commit graph

121 commits

Author SHA1 Message Date
Raphael
145535ed98
build: sort the submakefile 2025-12-11 16:53:42 +01:00
Raphael
595024b3ef
build(gnl): adding the gnl free to build 2025-12-11 16:51:59 +01:00
copilot-swe-agent[bot]
ea3cdf4548 Update function count to accurate 60+ functions
Co-authored-by: EniumRaphael <35407363+EniumRaphael@users.noreply.github.com>
2025-12-11 16:49:54 +01:00
Raphael
703c3294ae style: update readme 2025-12-11 16:49:54 +01:00
copilot-swe-agent[bot]
58f23c86cb Fix library path and improve example code quality
Co-authored-by: EniumRaphael <35407363+EniumRaphael@users.noreply.github.com>
2025-12-11 16:49:54 +01:00
copilot-swe-agent[bot]
aa111edcb9 Fix include paths in compilation instructions
Co-authored-by: EniumRaphael <35407363+EniumRaphael@users.noreply.github.com>
2025-12-11 16:49:54 +01:00
copilot-swe-agent[bot]
8cf046f0f5 Add bilingual French/English README.md
Co-authored-by: EniumRaphael <35407363+EniumRaphael@users.noreply.github.com>
2025-12-11 16:49:54 +01:00
Raphael
165ea0fd12
build: now linking all lib in the libft directory 2025-12-11 16:37:24 +01:00
Raphael
4c439bf606 style(includes): moving the includes in libft folder
- Disable conflict with libs like math.h
2025-12-11 16:36:22 +01:00
Raphael
8e4703da55 feat(gnl): adding the gnl free buffer in exit case 2025-12-11 16:36:22 +01:00
Raphael
eb471f74f4 style(gnl)!: renaming function existing in the libft but edited for gnl 2025-12-11 16:36:22 +01:00
Raphael
4b544eb74d style(gnl)!: renaming function existing in the libft but edited for gnl 2025-12-11 16:36:22 +01:00
Raphael
eb7bc20725 style(includes): header of gnl is now in the includes file 2025-12-11 16:36:22 +01:00
Raphael
10d1563a89 style(includes): moving the includes in libft folder
- Disable conflict with libs like math.h
2025-12-11 16:36:22 +01:00
Raphael
4eac053ef8 build: now using the submakefile to compile all those files 2025-12-11 14:44:48 +01:00
Raphael
add7f01e7d build: adding the project sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
c2a1ef8083 build(str): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
5efe9c9d0c build(print): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
6bea1b0b9b build(memory): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
2cc27d75e0 build(math): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
ba4adf3ab8 build(list): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
cdf388fb7e build(gnl): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
c9bfd81d83 build(convert): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
338acd32c7 build(char): adding the module sub-makefile 2025-12-11 14:44:48 +01:00
Raphael
8b268a536b
feat(char/isspace): adding isspace function 2025-12-11 14:36:59 +01:00
Raphael
8a294513d8
doc(char): adding the isspace documentation 2025-12-11 14:36:17 +01:00
Raphael
50cc782edd
feat(gnl): include gnl to the libft 2025-12-11 14:35:47 +01:00
Raphael
0464e59dda feat(make): adding the ft_atou function 2025-11-03 14:15:32 +01:00
Raphael
cc41df24e6 fix(convert/atou): moving the initialiation to the top 2025-11-03 14:14:32 +01:00
Raphael
e903c922dd
core(make/tmux): adding tmux rules 2025-09-27 00:09:46 +02:00
Raphaël
32c04140b7
style(readme): deleting the readme 2025-09-19 17:07:59 +02:00
Raphael
8313d8a1c5
core(ignore): adding the build directory to ignore 2025-09-17 17:32:49 +02:00
Raphaël
d1d78c8d7d
Math Utilities Module
## 🆕 New Math Functions
- 🔢 Added `ft_max` → returns the maximum of two values.  
- 🔢 Added `ft_min` → returns the minimum of two values.  
- ✖️ Added `ft_power` → computes exponentiation.  
-  Added `ft_abs` → returns absolute value.  
- √ Added `ft_sqrt` → computes integer square root.  
- 📄 Created `math.h` to declare and document all math functions.  

## 🛠️ Build System Integration
- 🧩 Updated the `Makefile` to include the new `math/` sources so they compile and link with the rest of the project.  

##  Impact
- Project now includes a **dedicated math utility module**.  
- Provides essential helper functions for broader use in future features.  
- Cleaner organization with centralized declarations in `math.h`.
2025-09-17 16:49:01 +02:00
Raphael
801634c6dc
refactor(convert): norming the convert header
- ft_atou was not aligned
2025-09-17 16:47:00 +02:00
Raphael
faf72b5895
refactor(test/convert): norming the test of itoa 2025-09-17 16:46:13 +02:00
Raphael
90d32dca61
style(math/sqrt): changing the parameter name to be clearer 2025-09-17 16:45:41 +02:00
Raphael
574c470a1c
feat(math): adding the header for math library 2025-09-17 16:45:20 +02:00
Raphael
b5f2f370bf
build: adding math part on the makefile 2025-09-17 16:43:22 +02:00
Raphael
62dec89863
feat(math/sqrt): adding a function to calculate square root 2025-09-17 16:43:00 +02:00
Raphael
c27526bc24
feat(math/power): adding a function to calculate power 2025-09-17 16:42:42 +02:00
Raphael
d8ac7d2b88
feat(math/ft_min): adding ft_min
- Using the bitwise for fun 👀
2025-09-17 16:42:24 +02:00
Raphael
82c445502b
feat(math/ft_max): adding ft_max
- Using the bitwise for fun 👀
2025-09-17 16:42:17 +02:00
Raphael
6879b46aee
feat(math/abs): adding ft_abs function
- Return the absolute value
2025-09-17 16:41:56 +02:00
Raphaël
2be64a8f1b
🛠️ Update to ft_atou
## 🛠️ Update to `ft_atou`
- 🌀 Added a loop in `convert/ft_atou.c` to **skip leading whitespace** characters before parsing, ensuring correct conversion of inputs with spaces at the start.  

## 🗂️ Metadata
- 📅 Updated the file header timestamp for consistency.  

##  Impact
- More accurate and standard-compliant behavior for `ft_atou`.  
- Cleaner handling of edge cases with whitespace.
2025-09-12 15:52:17 +02:00
Raphael
94d1de557f
feat(convert/atou): adding the skip of the whitespace at the start
- Wasn't using the function isspace :).
2025-09-12 15:25:20 +02:00
Raphaël
1a09167546
🔢 Conversion Utilities Expansion
##  New Functionality
-  Added the `ft_atou` function in `ft_atou.c` to convert a string to `size_t` (unsigned integer), with built-in whitespace handling and null pointer safety.  
- 📝 Declared `ft_atou` in `convert.h` with a detailed Doxygen-style comment explaining usage, return value, and parameters.  

## 🧪 Test Coverage Improvements
- 🆕 Introduced `test_atou.c` to verify `ft_atou` against `strtoull`, covering edge cases such as empty strings, whitespace, and invalid input.  
- 🔍 Expanded tests in `test_atoi.c`, `test_atoll.c`, and `test_itoa.c` to include more diverse scenarios (extra whitespace, varied integer ranges) to improve robustness and reliability.  

## 🛠️ Codebase Maintenance
- 📦 Included `<stddef.h>` in `convert.h` to ensure `size_t` is available in function declarations.  

##  Impact
- New unsigned integer conversion capability.  
- Stronger and more comprehensive test suite for all conversion functions.  
- Cleaner and safer header definitions.
2025-09-08 10:26:12 +02:00
Raphael
1266f5d7e8
feat(convert/atou): adding the atou function
- without management of simbole (because useless)
2025-09-08 10:23:59 +02:00
Raphael
198f56177b
test(convert): adding test for itoa
- adding test with 13 7 for the captain of the 7th divison of the gotei
13 (it's me btw)
2025-09-08 10:23:24 +02:00
Raphael
904fafc3f4
test(convert): adding test for atoll
- adding test with whitespace before
2025-09-08 10:22:49 +02:00
Raphael
74188a547f
test(convert): adding test for atoi
- adding test with whitespace before
2025-09-08 10:22:41 +02:00