cpiofile: Document and add C wrapper