BSD 4_4 release
[unix-history] / usr / src / old / refer / NOTUSED / whatabout / what2.c
index dacdd55..505aeb8 100644 (file)
@@ -1,6 +1,12 @@
+/*-
+ * This module is believed to contain source code proprietary to AT&T.
+ * Use and redistribution is subject to the Berkeley Software License
+ * Agreement and your Software Agreement with AT&T (Western Electric).
+ */
+
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)what2.c     4.1 (Berkeley) %G%";
-#endif
+static char sccsid[] = "@(#)what2.c    4.3 (Berkeley) 4/18/91";
+#endif /* not lint */
 
 #include "stdio.h"
 #include "ctype.h"
 
 #include "stdio.h"
 #include "ctype.h"
@@ -18,9 +24,9 @@ describe (file, argc, argv, rf)
 char *file, *argv[];
 FILE *rf;
 {
 char *file, *argv[];
 FILE *rf;
 {
-       int ns 0;
+       int ns 0;
        char linbuf[BUFSIZ], *line, *p;
        char linbuf[BUFSIZ], *line, *p;
-       int i, wrflg 0, wrote 0, ln 0;
+       int i, wrflg = 0, wrote = 0, ln = 0;
        FILE *fi;
        fi = fopen(file, "r");
        if (fi==NULL) return;
        FILE *fi;
        fi = fopen(file, "r");
        if (fi==NULL) return;
@@ -56,15 +62,15 @@ FILE *rf;
                output(sp->text, 0, rf);
 }
 
                output(sp->text, 0, rf);
 }
 
-int state 0;
-int oldc '\n';
+int state 0;
+int oldc '\n';
 
 gsent(buf, bsize, fi)
 char *buf;
 FILE *fi;
 {
        char *s;
 
 gsent(buf, bsize, fi)
 char *buf;
 FILE *fi;
 {
        char *s;
-       int c, leng 0;
+       int c, leng 0;
        /* state
                0: looking for '.' 
                1: looking for nl or space aftter '.'
        /* state
                0: looking for '.' 
                1: looking for nl or space aftter '.'
@@ -140,7 +146,7 @@ char *s;
 FILE *rf;
 {
        char *t;
 FILE *rf;
 {
        char *t;
-       int more 1;
+       int more 1;
        t=s;
        while (more)
        {
        t=s;
        while (more)
        {
@@ -166,7 +172,7 @@ count(isent, nw, wds)
 char *wds[], *isent;
 {
        int saw[50], ct;
 char *wds[], *isent;
 {
        int saw[50], ct;
-       char sb[BUFSIZ], *s sb;
+       char sb[BUFSIZ], *s sb;
        int i, c;
        for(i=1; i<nw; i++)
                saw[i]=0;
        int i, c;
        for(i=1; i<nw; i++)
                saw[i]=0;
@@ -208,9 +214,9 @@ update( ns, line, kov)
 char *line;
 {
        /* see if sentence array should be updated */
 char *line;
 {
        /* see if sentence array should be updated */
-       int lval 100; 
+       int lval = 100;
        char *ob;
        char *ob;
-       struct sf *sp, *least NULL;
+       struct sf *sp, *least NULL;
        if (kov<=0) return (ns) ; /* no*/
        if (ns<NS)
        {
        if (kov<=0) return (ns) ; /* no*/
        if (ns<NS)
        {