Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

wfind
Summary

int wfind(word1,word2,j)
char *word1;       /* first word */
char *word2;       /* second word */
int j;             /* first edit line to be scanned */
Description

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.

Example

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. */


Front page of Survo C libraries