From 9c64c9d253fa22b29005ec53dca6fedcead2ae6c Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 12 Apr 2024 18:51:50 +0200 Subject: Add libft and input handling --- libft/ft_strrchr.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libft/ft_strrchr.c (limited to 'libft/ft_strrchr.c') diff --git a/libft/ft_strrchr.c b/libft/ft_strrchr.c new file mode 100644 index 0000000..5d31654 --- /dev/null +++ b/libft/ft_strrchr.c @@ -0,0 +1,40 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strrchr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser */ +/* #include */ + +/* int main(void) */ +/* { */ +/* char str[] = "Hello world"; */ + +/* printf("strrchr: %s\n", strrchr(str, 'o')); */ +/* printf("ft_strrchr: %s\n", ft_strrchr(str, 'o')); */ +/* } */ -- cgit v1.2.3