Using libblkid to find UUID of a partition

Viewed 8517

I was looking at libblkid and was confused about the documentation. Could someone provide me with an example of how I could find the UUID of a root linux partition using this library?

2 Answers
Related