docs: adding documentation on my libft

This commit is contained in:
Raphael 2024-10-31 18:17:43 +01:00
parent c947e43e51
commit 83cc8419a0
47 changed files with 624 additions and 44 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/09 13:56:02 by rparodi #+# #+# */
/* Updated: 2023/11/13 12:14:57 by rparodi ### ########.fr */
/* Updated: 2024/10/31 18:13:39 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -74,6 +74,15 @@ static char **ext_w(char **words_array, const char *str, char sep, int size)
return (words_array);
}
/**
* @brief Splits a string into an array of substrings based on a delimiter.
*
* @param s The string to split.
* @param c The delimiter character.
*
* @return A NULL-terminated array of substrings,
* or NULL if memory allocation fails.
*/
char **ft_split(char const *s, char c)
{
int size;