minishell
Functions
ft_strchr.c File Reference
#include <stddef.h>
Include dependency graph for ft_strchr.c:
Go to the source code of this file.
Functions
char *
ft_strchr
(const char *s, int c)
Function Documentation
◆
ft_strchr()
char* ft_strchr
(
const char *
s
,
int
c
)
Definition at line
15
of file
ft_strchr.c
.
16
{
17
while
(*s != (
char
)c && *s !=
'\0'
)
18
s++;
19
if
(*s == (
char
)c)
20
return
((
char
*)s);
21
else
22
return
(NULL);
23
}
Here is the caller graph for this function:
libft
ft_string
ft_strchr.c
Generated by
1.9.1