added ics_printf() and ics_update_width() and utility functions