projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avanti con le code di messaggi.
[gapil.git]
/
sources
/
FortuneParse.c
diff --git
a/sources/FortuneParse.c
b/sources/FortuneParse.c
index 24dabd1a51c2cbd0e873a8612b264cbb30d475e9..c81c7e828a2e192f4a9fe12efb3db0076e784f3f 100644
(file)
--- a/
sources/FortuneParse.c
+++ b/
sources/FortuneParse.c
@@
-28,7
+28,7
@@
* Read n fortunes from fortune file file, and put it into the
* string array fortune
*
* Read n fortunes from fortune file file, and put it into the
* string array fortune
*
- * $Id: FortuneParse.c,v 1.
2 2002/08/18 14:38:04
piccardi Exp $
+ * $Id: FortuneParse.c,v 1.
3 2003/01/12 16:10:07
piccardi Exp $
*
****************************************************************/
/*
*
****************************************************************/
/*
@@
-59,7
+59,8
@@
int FortuneParse(char *file, char **fortune, int n)
*/
fortunefile = fopen(file,"r");
if (fortunefile == NULL) { /* on open error exit */
*/
fortunefile = fopen(file,"r");
if (fortunefile == NULL) { /* on open error exit */
- perror("Opening fortune file");
+ printf("On file %s\n", file);
+ perror("Cannot open file");
exit(-1);
}
i = 0;
exit(-1);
}
i = 0;