0

i m using char pointers to take data from char arrays of 4096 bytes and storing them into a file.
the problem is............
if the data consist of only one buffer than the two datas are same but if there are more than two buffers than the data is different when compared.

at the end of each buffer an extra char comes what is that and how to solve it .
Please Help

2
Contributors
1
Reply
3
Views
8 Years
Discussion Span
Last Post by Fbody
0

The extra char is probably the null terminator. Have your loop check for '\0' and terminate without processing when it's detected.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.