I don't know what comment you want about the comment. It is very true. The difference from before (I guess this is what you're asking) is that since you're building this string from scratch rather than reading it in, you have to build the \0 character as you're building the string.