2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
10 printsw(substr
, swp
, prefix
)
11 char *substr
, *prefix
;
15 register char *cp
, *cp1
;
21 if(!*substr
|| /* null matches all strings */
22 (ssequal(substr
, swp
->sw
) && len
>= swp
->minchars
))
23 if(swp
->minchars
> 0) {
26 for(cp1
= swp
->sw
, i
= 0; i
< swp
->minchars
; i
++)
29 while(*cp
++ = *cp1
++);
30 printf(" %s%s\n", prefix
, buf
);
31 } else if(swp
->minchars
== 0)
32 printf(" %s%s\n", prefix
, swp
->sw
);