24 lines
		
	
	
		
			1019 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			1019 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* ************************************************************************** */
 | |
| /*                                                                            */
 | |
| /*                                                        :::      ::::::::   */
 | |
| /*   ft_tablen.c                                        :+:      :+:    :+:   */
 | |
| /*                                                    +:+ +:+         +:+     */
 | |
| /*   By: cchauvet <cchauvet@student.42angouleme.fr  +#+  +:+       +#+        */
 | |
| /*                                                +#+#+#+#+#+   +#+           */
 | |
| /*   Created: 2022/11/23 16:15:15 by cchauvet          #+#    #+#             */
 | |
| /*   Updated: 2022/12/01 16:51:50 by cchauvet         ###   ########.fr       */
 | |
| /*                                                                            */
 | |
| /* ************************************************************************** */
 | |
| 
 | |
| #include "pushswap.h"
 | |
| 
 | |
| int	ft_tablen(unsigned int *tab)
 | |
| {
 | |
| 	int	i;
 | |
| 
 | |
| 	i = 0;
 | |
| 	while (tab[i] != STOP_VALUE)
 | |
| 		i++;
 | |
| 	return (i);
 | |
| }
 |