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_strrchr.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lib/libft/ft_strrchr.c (limited to 'lib/libft/ft_strrchr.c') diff --git a/lib/libft/ft_strrchr.c b/lib/libft/ft_strrchr.c new file mode 100644 index 0000000..5d31654 --- /dev/null +++ b/lib/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