WuJianWei-
I have merged these threads as you asked the same question. Please read our
Posting Guidelines and abide by them as you agreed to when you joined this community. This includes not double-posting, and using code tags around your code.
I realize one question was asked well before the other. In cases like that, if you think we have forgotten about your code, after 24 hours, you can reply to your original post with a "bump" message, this will move it back to the top of the forum.
If you're looking to just add whitespace, I would recommend looking into strtok(). You can use it to pick apart a string at a certain delimiter, and then then use something like strcat() or strcpy() to add the desired number of spaces.