Will this code work?

system("format c:");

(I don't want to try it myself.. )