Library of C functions