Some general C functions and macros.