tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_split.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_split.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/26 15:41:34 by tgrekov #+# #+# */
/* Updated: 2023/11/13 22:11:57 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_split.c.

#include "libft.h"
Include dependency graph for ft_split.c:

Go to the source code of this file.

Functions

char ** ft_split (char const *s, char c)
 Split string s by characer c into allocated array of strings, with NULL as the last element.
 

Function Documentation

◆ ft_split()

char ** ft_split ( char const *  s,
char  c 
)

Split string s by characer c into allocated array of strings, with NULL as the last element.

Parameters
[in]sNull-terminated string to split
[in]cCharacter to split on
Return values
char**Allocated array of allocated string pointers, with NULL as the last element

Definition at line 72 of file ft_split.c.

References ft_calloc(), and ft_substr().

Here is the call graph for this function: