title: In Linux in C/C++ how to determine filesystem type of a mounted or unmounted partition
body: <p><code># blkid /dev/sdX</code> gives the filesystem type of the partition whether mounted or unmounted. How can I do it from C/C++ with out invoking a system call and parsing the out put? How can I do it programatically? Is there any <code>blkid-dev</code> package?</p>