You need another brace to close main. You store the newline in newstring, which strlen is going to count as a character. Could also be getting a carriage return, which would make the count 2 more...
Type: Posts; User: c.pergiel
You need another brace to close main. You store the newline in newstring, which strlen is going to count as a character. Could also be getting a carriage return, which would make the count 2 more...
First of all, your formatting is atrocious, but that could be due to text conversion problems, so I'll leave that alone.
There are several actual problems, but doesn't your compiler report error...