c library / usefull functions