  }

    <span class="c">/* Alloacte a 100 MiB of contiguous area to the file */</span>
    res = <em>f_expand</em>(fp, 104857600, 1);
    if (res) { <span class="c">/* Check if the file has been expanded */</span>
        f_close(fp);
        free(fp);
        die("Failed to allocate contiguous area.");
    }

    <span class="c">/* Now you have a contiguous file accessible with fp */</span>

</pre>
<pre>
    <span class="c">/* Accessing the contiguous file via low-level disk functions */</span>

    <span