Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB


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.

Return Value

wfind returns the index of the line and -1 if the line is not found.


int k;
char name[]="ABC";

  /* finds the first line in the current edit field
     starting with the words DATA ABC. */

Front page of Survo C libraries