|
|
|
@ -622,6 +622,11 @@ char **yon_char_parse(char *parameters, int *size, char *divider){
|
|
|
|
|
|
|
|
|
|
|
|
char **yon_char_parsed_rip(char **char_string, int *size, int item_to_delete) {
|
|
|
|
char **yon_char_parsed_rip(char **char_string, int *size, int item_to_delete) {
|
|
|
|
if (char_string && size && (*size) > 0 && (*size) > item_to_delete && item_to_delete >= 0) {
|
|
|
|
if (char_string && size && (*size) > 0 && (*size) > item_to_delete && item_to_delete >= 0) {
|
|
|
|
|
|
|
|
if ((*size)==1){
|
|
|
|
|
|
|
|
yon_char_parsed_free(char_string,*size);
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
char **new_char_parsed = malloc(sizeof(char*) * ((*size) - 1));
|
|
|
|
char **new_char_parsed = malloc(sizeof(char*) * ((*size) - 1));
|
|
|
|
if (!new_char_parsed) {
|
|
|
|
if (!new_char_parsed) {
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|