Lines Matching defs:rumors
1 /* SCCS Id: @(#)rumors.c 3.4 1996/04/20 */
12 * here means rumors following longer rumors are output more often than those
13 * following shorter rumors. Also, you may see the same rumor more than once
19 * The rumors file consists of a "do not edit" line, a hexadecimal number
20 * giving the number of bytes of useful/true rumors, followed by those
21 * true rumors (one per line), followed by the useless/false/misleading/cute
22 * rumors (also one per line). Number of bytes of untrue rumors is derived
61 /* exclude_cookie is a hack used because we sometimes want to get rumors in a
63 * cookies should not appear. This has no effect for true rumors since none
72 dlb *rumors;
80 rumors = dlb_fopen(RUMORFILE, "r");
82 if (rumors) {
89 init_rumors(rumors);
114 (void) dlb_fseek(rumors, beginning + tidbit, SEEK_SET);
115 (void) dlb_fgets(line, sizeof line, rumors);
116 if (!dlb_fgets(line, sizeof line, rumors) ||
117 (adjtruth > 0 && dlb_ftell(rumors) > true_rumor_end)) {
118 /* reached end of rumors -- go back to beginning */
119 (void) dlb_fseek(rumors, beginning, SEEK_SET);
120 (void) dlb_fgets(line, sizeof line, rumors);
125 (void) dlb_fclose(rumors);
131 pline("Can't open rumors file!");
162 line = "NetHack rumors file closed for renovation.";
382 /*rumors.c*/