42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_super_array.c File Reference

The file containing the my_super_array function. More...

#include "my.h"

Functions

int count_words (char *str, char *sep)
 
int count_letters (char *str, char *sep, int *save)
 
int decale_save (int *save, char *str, char *sep)
 
int fill_str (char *to_fill, int nb_letters, int save, char *source)
 
char ** my_super_array (char *str, char *sep)
 Returns an array of words delimited by a list of separator (separator) from a string (str)
 

Detailed Description

The file containing the my_super_array function.

Author
Nicolas TORO

Function Documentation

◆ my_super_array()

char ** my_super_array ( char * str,
char * sep )

Returns an array of words delimited by a list of separator (separator) from a string (str)

Parameters
strThe string to convert
sepThe separator to use
Returns
char** The array of words
Author
Gianni TUERO