In C, a string is a collection of characters terminated by the null character, which is simply the character with value zero. Your code has a collection of characters, but does not include a null...
Type: Posts; User: Xirtam
In C, a string is a collection of characters terminated by the null character, which is simply the character with value zero. Your code has a collection of characters, but does not include a null...
Since getline() is not a standard function, you can't be sure whether it's being called correctly. Since the OP defined _GNU_SOURCE it's reasonable to expect that he's on a GNU system, and using...