So heres my failed attempt at trying to fix this horrid code using char **'s.
int main()
{
char *dynamic_string;
char **string_ptr;
int i=0;
Type: Posts; User: CaptainQcumber
So heres my failed attempt at trying to fix this horrid code using char **'s.
int main()
{
char *dynamic_string;
char **string_ptr;
int i=0;
Ah I thought it would be something along those lines, I originally did all the allocating inside of main and only had the user_input function hold the scanf() code to input the string, but then...
So I'm trying to create a dynamically allocated user input string. I thought I had everything figured out but theres seems to be a problem when my program reaches 16 char's. Any string smaller than...