Seluj78/Minishell

View on GitHub
libft/ft_strlen.c

Summary

Maintainability
Test Coverage
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_strlen.c                                        :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: jlasne <jlasne@student.42.fr>              +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2016/08/27 12:48:10 by jlasne            #+#    #+#             */
/*   Updated: 2016/11/03 13:26:40 by jlasne           ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

int        ft_strlen(const char *str)
{
    int i;

    i = 0;
    while (str[i] != '\0')
        i++;
    return (i);
}