time always returns 0.00 seconds. Where am i going wrong? thanksCode:#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <time.h> #define LEN 50 typedef struct L { char k[LEN]; struct L *next; } List; List *insertList (char head[LEN], List *tail) { List *m = (List*) malloc (sizeof(List)); strcpy(m -> k,head); m -> next = tail; return m; } void printList (List *v) { while ( v != NULL){ printf ("%s\n", v -> k); v = v -> next; } } static FILE *open_file ( char *file, char *mode ) { FILE *fp = fopen ( file, mode ); if ( fp == NULL ) { perror ( "Unable to open file" ); exit ( EXIT_FAILURE ); } return fp; } int main (int argc, char *argv[]) { int x; int wordcount; char a; char word[LEN]; List *t = NULL; time_t start,end; double dif; FILE *fp; time (&start); fp = open_file ( argv[1], "r" ); wordcount = 0; do{ x = 0; do{ a = fgetc (fp); if (a != ' ' && a != '\n' && a != EOF && a !=',' && a !=';' && a !='.'&& a !='!' && a !='?' && a !=':' && a !='`'){ word[x] = tolower(a); x++; }else{ if (x != 0){ word[x] = '\0'; t = insertList (word, t); wordcount++; } } }while (a != ' ' && a != '\n' && a != EOF && a !=',' && a !=';' && a !='.'&& a !='!' && a !='?' && a !=':' && a !='`'); } while (a != EOF); fclose (fp); time (&end); dif = difftime (end,start); printList (t); printf ("Total words read: %d\n", wordcount); printf ("It took %.2lf seconds to read in words.\n", dif ); return 0; }