[Courses] Using <time.h>
Abel Pires da Silva
lybel_2000 at yahoo.com
Wed Oct 9 23:04:37 EST 2002
I'm trying to put a time function on the program to
count how much time (in seconds) for the program to
open a file, read its content until the program
finished made comparation...
start counting time;
if ((PF=fopen("tabel.txt","r"))!= NULL) /*
open the file contained with restricted addresses */
{
while ((fgets(line,20, PF))!= NULL)
{
if((strstr(line, buffer)) != NULL) /* deny if any
match*/
{
printf("denied\n");
}
}
}
final time;
I'm a beginner in C so, Can any one give me an example
how to implement this?
I would be very grateful.
ABel
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
More information about the Courses
mailing list