42-archive/libftasm/srcs/sstr/ft_sstrdel.c
2017-03-31 18:40:30 +02:00

25 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sstrdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:04:07 by jhalford #+# #+# */
/* Updated: 2017/03/14 21:09:17 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_sstrdel(char **sstr, int index)
{
int i;
i = index;
while (sstr[i])
{
sstr[i] = sstr[i + 1];
i++;
}
}