Message
This commit is contained in:
parent
d0fe1fb2fb
commit
2ecc64f778
3 changed files with 35 additions and 18 deletions
|
|
@ -6,12 +6,25 @@
|
|||
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/07 16:56:24 by rparodi #+# #+# */
|
||||
/* Updated: 2024/04/17 19:42:58 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/04/22 10:35:54 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../includes/push_swap.h"
|
||||
|
||||
size_t chk_len(const char *str)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
if (str[0] == '-')
|
||||
i = 1;
|
||||
else
|
||||
i = 0;
|
||||
while (str[i] != '\0' && (str[i] == '0'))
|
||||
i++;
|
||||
return (ft_len(str + i));
|
||||
}
|
||||
|
||||
size_t ft_len(const char *s)
|
||||
{
|
||||
size_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue