diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-11 16:14:38 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-11 16:14:38 +0200 |
| commit | b9f000a80cbba38b8f21c9737a42f07573ec7b91 (patch) | |
| tree | 7068e7188dab0a710ae79d71800b329ab655e3eb /src/str/ft_strslen.c | |
| parent | a4b9cda7d6733f2b077f8586e3b3e69351e7dfba (diff) | |
| download | libft-b9f000a80cbba38b8f21c9737a42f07573ec7b91.tar.gz libft-b9f000a80cbba38b8f21c9737a42f07573ec7b91.tar.bz2 libft-b9f000a80cbba38b8f21c9737a42f07573ec7b91.zip | |
Moved util/ft_split* in str, Added ft_memjoin and ft_memjoinf1, Modified ft_getfile so that it can read non-ascii file
Diffstat (limited to 'src/str/ft_strslen.c')
| -rw-r--r-- | src/str/ft_strslen.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/str/ft_strslen.c b/src/str/ft_strslen.c new file mode 100644 index 0000000..0268033 --- /dev/null +++ b/src/str/ft_strslen.c @@ -0,0 +1,23 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strslen.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/05/10 20:58:46 by charles #+# #+# */ +/* Updated: 2020/05/11 15:49:40 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft_str.h" + +size_t ft_strslen(char **strs) +{ + size_t count; + + count = 0; + while (strs[count] != NULL) + count++; + return (count); +} |
