Utility functions for C language