data_structures
src
utils
ds_strlen.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* ds_strlen.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2019/09/04 22:48:19 by unite #+# #+# */
10
/* Updated: 2020/09/05 18:50:37 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
14
#include "
utils.h
"
15
20
size_t
ds_strlen
(
const
char
*s)
21
{
22
size_t
i;
23
24
i = 0;
25
while
(s[i])
26
i++;
27
return
(i);
28
}
ds_strlen
size_t ds_strlen(const char *s)
Replicates behaviour of strlen from libc.
Definition:
ds_strlen.c:20
utils.h
Generated by
1.8.16