The first project of the common-core of the school 42, where the main goal is to develop tools to the rest of the cursus
## ✨ 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. |
||
|---|---|---|
| .github/workflows | ||
| char | ||
| convert | ||
| includes | ||
| list | ||
| memory | ||
| str | ||
| test | ||
| .gitignore | ||
| flake.nix | ||
| Makefile | ||
| README.md | ||
This project is your very first project as a student at 42. You will need to recode a few functions of the C standard library as well as some other utility functions that you will use during your whole cursus.
| Keywords | Skills |
|---|---|
| Unix Logic | Algorithms & AI |
| Imperative programming | |
| Rigor |