-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_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: Aamjahed <aamjahed@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/20 00:39:26 by Aamjahed #+# #+# */
/* Updated: 2023/09/30 17:07:19 by Aamjahed ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strchr(const char *s, int c)
{
return (ft_memchr(s, c, ft_strlen(s) + 1));
}