-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strclen.c
23 lines (20 loc) · 1.01 KB
/
ft_strclen.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strclen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lenzo-pe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/19 01:06:25 by lenzo-pe #+# #+# */
/* Updated: 2021/05/07 15:01:30 by lenzo-pe ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_string.h"
size_t ft_strclen(const char *str, int c)
{
unsigned int i;
i = 0;
while (str[i] && str[i] != c)
i++;
return (i);
}