struct baudent { char *name; int rate; } baudlist[] = { {"0", B0}, {"50", B50}, {"75", B75}, {"110", B110}, {"134", B134}, {"134.5", B134}, {"150", B150}, {"200", B200}, {"300", B300}, {"600", B600}, {"1200", B1200}, {"1800", B1800}, {"2400", B2400}, {"4800", B4800}, {"9600", B9600}, {"exta", EXTA}, {"19200", EXTA}, {"extb", EXTB}, {"38400", EXTB} }; #define NBAUD (sizeof(baudlist)/sizeof(struct baudent)) #define NOBAUD (-1)