🛠️ 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.
This commit is contained in:
Raphaël 2025-09-12 15:52:17 +02:00 committed by GitHub
commit 2be64a8f1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/08 17:22:41 by rparodi #+# #+# */
/* Updated: 2025/09/08 10:16:01 by rparodi ### ########.fr */
/* Updated: 2025/09/12 15:24:43 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -26,6 +26,8 @@ size_t ft_atou(const char *nptr)
if (!nptr)
return (0);
while (ft_check_space(nptr[i]))
i++;
i = 0;
number = 0;
while (nptr[i])