This repository has been archived on 2023-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
c_piscine_rush_02/ex00/ft_utils.c
2023-12-02 23:46:24 +04:00

28 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/02 21:56:30 by achubuko #+# #+# */
/* Updated: 2023/12/02 23:45:23 by achubuko ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_utils.h"
uint32_t ft_atoui32(char *str)
{
return (*str - '0');
}
size_t ft_strlen(char *s)
{
size_t l;
l = 0;
while (*s++)
l++;
return (l);
}