char buffer[MAXCHAR], log[512];
char buffer[FORTUNEMAXCHAR], log[512];
int get_quote(char *file, char *name)#endif{     int fd = 0, c = 0, s = 0, i = 0;     long rand_no = 0;     char buffer[MAXCHAR], log[512];               fd = open(file, 0);          if(fd == -1) {               printf("No such file! %s%s", ROOTDIR, file);               return 0;     }          //Read number of entries     s = read(fd, &c, sizeof(c));     //Pick a random entry     rand_no = makerand(c);          #ifndef HEADER     //lseek it     lseek(fd, (long)sizeof(c)+(MAXCHAR * rand_no), 0);     //Read it     s = read(fd, buffer, MAXCHAR);     #else     // BROKEN     //Seek it     lseek(fd, (long)(sizeof(c) + (sizeof(c) * rand_no)), 0);     s = read(fd, &i, sizeof(i));     printf("Entry %d, number %d, picked %d: Int=%d - C=%d", i, c, rand_no, sizeof(int), sizeof(c));     lseek(fd, (long)(sizeof(c) + (sizeof(i) * c) + i), 0);          //Read it     s = read(fd, buffer, i);          #endif          output(buffer);}