aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_strchr.c')
-rw-r--r--src/ft_strchr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ft_strchr.c b/src/ft_strchr.c
new file mode 100644
index 0000000..0952232
--- /dev/null
+++ b/src/ft_strchr.c
@@ -0,0 +1,7 @@
+#include "libft.h"
+
+char *
+ft_strchr (const char *s, int c)
+{
+ return (ft_memchr (s, c, ft_strlen (s) + 1));
+}