projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
last few day's work
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
ttinit.c
#ifndef lint
static char
*
sccsid
=
"@(#)ttinit.c 3.2 83/08/11"
;
#endif
#include
"ww.h"
ttinit
()
{
register
struct
tt_tab
*
tp
;
for
(
tp
=
tt_tab
;
tp
->
tt_name
!=
0
;
tp
++)
if
(
strncmp
(
tp
->
tt_name
,
wwterm
,
tp
->
tt_len
) ==
0
)
break
;
if
(
tp
->
tt_name
==
0
)
return
-
1
;
if
((*
tp
->
tt_func
)() <
0
)
return
-
1
;
return
(*
tt
.
tt_init
)();
}