find string in file

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2009
Posts: 5
Reputation: Tajon Wong is an unknown quantity at this point 
Solved Threads: 0
Tajon Wong Tajon Wong is offline Offline
Newbie Poster
 
0
  #11
Nov 5th, 2009
although this thread has been marked solved, but I want to tell some of my ideas, hope it can be help to u.

We can suppose a pane which is as long as the pattern.
first, the pointer of the pane and the file are the same, so we can use the "strcmp" function to mesure them, then the pointer of pane slow move(is the pointer++).
In this way, we can get the times now!
Am I right?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 640 | Replies: 10
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC