> if(*chr != '\n' && *chr != '\0' && *chr != 32 /*space*/)
How many times is this going to be true, resulting in a strcat of a whole string to another string?
> Unfortunately sscanf is a...
Type: Posts; User: Salem
> if(*chr != '\n' && *chr != '\0' && *chr != 32 /*space*/)
How many times is this going to be true, resulting in a strcat of a whole string to another string?
> Unfortunately sscanf is a...
How about actually creating some memory you can store strings in?
You know, like an array?
char foo[100] = { 0 };
> strcat(com, chr);
> strcat(val, chr);
And where are these pointing?
You have two garbage pointers, so just let loose the hell-hounds.