Utilities for c programming