In the code I posted, the statement
is erroneous since length already takes into account the null character that
ends-up the string.
The correct statement to use is
Type: Posts; User: Lie Algebra
In the code I posted, the statement
is erroneous since length already takes into account the null character that
ends-up the string.
The correct statement to use is
In a word here is what I did:
build a single string from the input file, parse the string and allocate dynamically an array of struct...
I checked with valgrind for any possible memory leak and...