I don't want to pointers, how can I write these 2 function without using pointers writing, and how to the call to the function will change?
void addSubString(char subString[], char help[], int *position, int until){
int counter = 0;
for (; counter< until; counter++, (*position)++){
help[*position] = subString[counter];
}
}
void addReplaceWith(char replaceWith[], char help[], int *position){
int counter = 0;
for (; replaceWith[counter] != '\0'; counter++, (*position)++){
help[*position] = replaceWith[counter];
}
}
calls:
addReplaceWith(replaceWith, help, &helpCounter)
addSubString(subString, help, &helpCounter, subStringHelp);