Is there an easy to use library that I can use for checking disk quotas? I need to modify a piece of software I have to implement this functionality.
Can't you just use quotactl?
quotactl
int quotactl(int cmd, const char *special, int id, caddr_t addr);