Findstr Findnstr string search findstr int pos char *string char *pattern findnstr int pos char *string char *pattern int size Description These functions search the string pointed to by "string" for the first instance of the pattern pointed to by "pattern" starting at position "pos" (where the first position is 1 not 0). The returned value is the position of the first matched character of the pattern in the string or zero if a match is not found. Findstr stops searching the string when a null byte is found in "string". Findnstr only stops searching at position "pos" + "len" so it may continue past null bytes. Caveats The current implementation does not use the most efficient algorithm for pattern matching so that use on very long strings is likely to be somewhat slower than it might be. See Also index(), rindex()