now a question about strings
hey all, I posted some questions last night about bit fields which I got some nice answers for, now I have a question about the way I am treating strings in my program.
basically I am re-using strings (in a loop). I am not zeroing them, I am simply writing to them with the addresses of their first elements and appending NULL terminators, when they may already contain data. everything is fine in my program, I don't get any errors or funky results, however I am just wondering what is happening to the data that they may already contain when I write to them again.
do the bytes they contain get pushed aside (could possibly cause memory leaks, hence the reason I am asking), or will they just get overwritten by the new bytes? I'm thinking they are just getting overwritten, hence the reason why I'm not getting funky results, but would just like to make sure this is what is happening, since I do plan on releasing this project as open source, I don't want to release a source containing possible memory leaks.
any help here would be greatly appreciated. thank you in advance! :)