C library for creating cyclic rotating files