title: How to import homepath into c program using gcc
body: <p>I am using <strong>gcc</strong> for <strong>windows</strong>. The OS is <strong>windows XP</strong>.
  How do I import the homepath  variable into my c program so I can write to c:\%homepath%\desktop? I would like to use something similar to:</p>
  
  <p><code>fd = fopen("C:\\%%homepath%%\\desktop\\helloworld.txt","w")</code>;</p>