/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_max.c                                           :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: adespond <adespond@student.42.fr>          +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2015/09/11 10:34:43 by adespond          #+#    #+#             */
/*   Updated: 2015/09/11 10:43:07 by adespond         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

int		ft_max(int *tab, int lenght)
{
	int max;
	int i;

	i = 0;
	max = 0;
	while (i < lenght)
	{
		if (tab[i] > max)
			max = tab[i];
		i++;
	}
	return (max);
}
