title: How to write a string to a file in C?
body: <p>How to convert this PHP function into C?</p>
  
  <pre><code>function adx_store_data(filepath, data)
  {
        $fp = fopen(filepath,"ab+");
        if($fp)
        {
            fputs($fp,data);
            fclose($fp);
        }
  }
  </code></pre>