How can I have the find only execute up to the point where it reaches the end of the file?
int not_found = find('printf("',"IP?+"); /* boolean to terminate loop */
while (!not_found) {
_deselect();
next_word();
cursor_right(2);
paste();
not_found = find('printf("',"IP?+");
}