resize char array func moved
last two func moved to char_array files