Set of generic C function not directly related to data structures