Searches for references to the word string in word throughout the whole project. Each line that contains word is appended to the buffer hbuf. If fTouchFiles is TRUE, then each file that contains word will have its last-modified time stamp set to the current time.
This function is similar to the "Lookup References" command. Word can contain more than one word, but this function is much faster if it is a single word.
This example creates a new search results file and searches for references.
macro LookupRefs (symbol)
hbuf = NewBuf("Results") // create output buffer
if (hbuf == 0)
SearchForRefs(hbuf, symbol, 0)
SetCurrentBuf(hbuf) // put buffer in a window