Various C utilities