1 #ifndef lint 2 static char *sccsid = "@(#)ttinit.c 3.2 83/08/11"; 3 #endif 4 5 #include "ww.h" 6 7 ttinit() 8 { 9 register struct tt_tab *tp; 10 11 for (tp = tt_tab; tp->tt_name != 0; tp++) 12 if (strncmp(tp->tt_name, wwterm, tp->tt_len) == 0) 13 break; 14 if (tp->tt_name == 0) 15 return -1; 16 if ((*tp->tt_func)() < 0) 17 return -1; 18 return (*tt.tt_init)(); 19 } 20