At the begining, I'd like to say that I'm very beginer with linux and stuff.
I'm reading a file (line by line) with use of a GetLine.
At the start, I open file descriptor with function open.
Then I change (int)f_descriptor to (FILE*)f_stream (because GetLine requires FILE* arg).
I'm splitting whole line into words (space is a separator) and I place them into a char** words_array. Everything works Ok as long as it's not the last word in the line. For some reason, last words have got some strange chars at the end of them. It doesnt happen always.
Why could this happen?