blob: 2bf4dd4164d43f572ba7a11e2e308c093fa0dae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_substr_s.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 17:07:15 by rbousset #+# #+# */
/* Updated: 2020/02/14 17:07:15 by rbousset ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <libft.h>
void ft_substr_s(char str[], const char *s, unsigned int start, size_t len)
{
ft_strlcpy(str, s + start, len + 1);
}
|