32char *
ft_substr(
char const *s,
unsigned int start,
size_t len)
42 s2_len = s2_len - start;
45 s2 = malloc(s2_len + 1);
void * ft_calloc(size_t count, size_t size)
Allocates count * size bytes with malloc and returns a pointer to the result.
size_t ft_strlcpy(char *dst, const char *src, size_t dstsize)
Copy at most dstsize - 1 characters from string src into dst.
size_t ft_strlen(const char *str)
Get length of str.
char * ft_substr(char const *s, unsigned int start, size_t len)
Allocates and returns a substring of s, starting at s + start, and ending no later than s + start + l...