A C library for manipulating env pairs