why not just do

wprintw("%02d:%02d  ", inthour, intmin);

?