/************************************************************************/ /* Determine primary adapter and print it */ /************************************************************************/ print_primary() { static char *list[] = {"Undefined","EGA/VGA","CGA","MDA/Hercules"}; int type; type = get_primary(); printf("\n%s is the primary adapter", list[type]); }