tweaks: move a general function to the utils.c file
3 files changed