1 /* ts.c: minor string processing subroutines */
5 match (char *s1
, char *s2
)
17 prefix(char *small
, char *big
)
21 while ((c
= *small
++) == *big
++)
31 if (ch
>= 'a' && ch
<= 'z')
33 if (ch
>= 'A' && ch
<= 'Z')
42 /* convert to integer */
44 for (k
= 0; *str
>= '0' && *str
<= '9'; str
++)
45 k
= k
* 10 + *str
- '0';
53 return(x
>= '0' && x
<= '9');
60 return( a
> b
? a
: b
);
65 tcopy (char *s
, char *t
)