Yes, they will certainly come in handy, thank you!
Type: Posts; User: koplersky
Yes, they will certainly come in handy, thank you!
Yeah, I myself have come across the '\r' and it was making my search in a hash table fail. I didn't know about this strcspn function, thanks for the fix and all the help, I really appreciate it.
I'm sorry, I explained it all wrong.
Here's what I'm doing:
char f_name [122];
fgets(f_name, sizeof(f_name), stdin);
if (f_name[strlen(f_name)-1] != '\n'){
...
Ok, thanks a lot for clarifying.
One last thing, this call:
fread_matrix(&b, stdin)
When I use stdin it freezes and does nothing after I enter the file path. But it works if I declare a char...
A thousand thanks for both of you, worked like a charm!
Just some questions, Nominal Animal.
Why is n of type size_t?
Why are the functions matrix_set and matrix_get inline?
And why are you...
Hello there,
I'm creating a program that reads numbers from a file and then creates a 2-D matrix with them. The first line of the file has the number of rows and columns of the matrix and the next...