From a28e57c6e0277a1d7346bec58cf557c52e337501 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Mon, 24 Jun 2024 16:58:46 +0200 Subject: Add libft --- lib/libft/ft_strchr.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lib/libft/ft_strchr.c (limited to 'lib/libft/ft_strchr.c') diff --git a/lib/libft/ft_strchr.c b/lib/libft/ft_strchr.c new file mode 100644 index 0000000..ecf522e --- /dev/null +++ b/lib/libft/ft_strchr.c @@ -0,0 +1,40 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strchr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser */ +/* #include */ + +/* int main(void) */ +/* { */ +/* char str[] = "teste"; */ + +/* printf("strchr: %p\n", strchr(str, '\0')); */ +/* printf("ft_strchr: %p\n", ft_strchr(str, '\0')); */ +/* } */ -- cgit v1.2.3