C library for NAR read/write