/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* pf_strlen.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/02/11 10:05:26 by tmaze #+# #+# */ /* Updated: 2019/02/11 10:05:29 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libftprintf.h" size_t pf_strlen(const char *s) { int i; i = 0; while (s != NULL && s[i] != '\0') i++; return (i); }