int wfind(word1,word2,j)
char *word1; /* first word */
char *word2; /* second word */
int j; /* first edit line to be scanned */
The wfind function searches the first line starting with the words
word1 word2
. The first line to be checked is j
. Extra spaces before
and between the words are not counted.
wfind returns the index of the line and -1 if the line is not found.
int k;
char name[]="ABC";
k=wfind("DATA",name,1);
/* finds the first line in the current edit field
starting with the words DATA ABC. */