Quota_accessor is a project mainly written in C, it's free.
Accessor for quota(1)
This program will provide API for information from quota(1)