> Can I then use tmp again at a different point without running into trouble?
absolutely... once you free a string, the pointer should be considered just like it's uninitialized. So you can use it for whatever.
> Can I then use tmp again at a different point without running into trouble?
absolutely... once you free a string, the pointer should be considered just like it's uninitialized. So you can use it for whatever.