General c function library.