C implementation of Pico