From c4ecdf83d368be6ce6e8d8f5a4f95ff084a47df4 Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Fri, 18 Nov 2016 23:15:13 +0100 Subject: [PATCH] strsqueeze is in fact useless --- libft/includes/libft.h | 1 - libft/src/str/ft_strsqueeze.c | 11 ----------- 2 files changed, 12 deletions(-) delete mode 100644 libft/src/str/ft_strsqueeze.c diff --git a/libft/includes/libft.h b/libft/includes/libft.h index e4338d1d..b16823a8 100644 --- a/libft/includes/libft.h +++ b/libft/includes/libft.h @@ -105,7 +105,6 @@ char *ft_convert_base( char *str, char *base_from, char *base_to, char *flags); char *ft_strcatf(char *s1, const char *s2); char *ft_strinsert(char *str, char c, int n); -void ft_strsqueeze(char *str, int n); char *ft_itoa_base(int nbr, char *base, char *flags); char *ft_lltoa_base(long long nbr, char *base, char *flags); diff --git a/libft/src/str/ft_strsqueeze.c b/libft/src/str/ft_strsqueeze.c deleted file mode 100644 index f94d800c..00000000 --- a/libft/src/str/ft_strsqueeze.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "libft.h" - -void ft_strsqueeze(char *str, int n) -{ - int i; - - i = 0; - while (str[i] && i < n) - i++; - ft_strcpy(str, str + 1); -}