Utility functions for C programs.