ft_printf/srcs/pf_strlen.c
2019-02-11 14:06:37 +01:00

24 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pf_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);
}