C implementation of WARPLab