void mode_string (short unsigned int mode, char *str);