-
Notifications
You must be signed in to change notification settings - Fork 4
/
ft_strchr.c
18 lines (16 loc) · 999 Bytes
/
ft_strchr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strchr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aalvarez <aalvarez@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/20 19:16:21 by aalvarez #+# #+# */
/* Updated: 2024/06/20 19:17:39 by aalvarez ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strchr(const char *s, int c)
{
return (ft_memchr(s, c, ft_strlen(s) + 1));
}