How to read the disk usage (du) in a C variable
<p>I would like to do the following in a "c" program. </p>

<p>I need to get the disk usage of the following directory and should be able to read it in a variable. </p>

<pre><code>du -sb /home/mann | awk '{print$1}'
</code></pre>

<p>I would like to do the above in C program and copy the output in a variable. I need to do this for this directory alone not for the "/" or "/home". </p>
