version 1.5, 2003/08/07 09:37:23 |
version 1.6, 2008/01/28 05:38:53 |
Line 48 __RCSID("$NetBSD$"); |
|
Line 48 __RCSID("$NetBSD$"); |
|
* function to return a random fortune from the fortune file |
* function to return a random fortune from the fortune file |
*/ |
*/ |
|
|
char *flines[] = { |
const char *flines[] = { |
"gem value = gem * 2 ^ perfection", |
"gem value = gem * 2 ^ perfection", |
"sitting down can have unexpected results", |
"sitting down can have unexpected results", |
"don't pry into the affairs of others", |
"don't pry into the affairs of others", |
Line 87 char *flines[] = { |
|
Line 87 char *flines[] = { |
|
|
|
#define NFORTUNES 34 |
#define NFORTUNES 34 |
|
|
char * |
const char * |
fortune() |
fortune(void) |
{ |
{ |
return (flines[random() % NFORTUNES]); |
return (flines[random() % NFORTUNES]); |
} |
} |