diff options
| author | cgd <cgd@NetBSD.org> | 1994-01-04 05:16:44 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1994-01-04 05:16:44 +0000 |
| commit | 768fb7262968f002e10f7fa193a5cc81092187e0 (patch) | |
| tree | 5c3299d73da1f054855a20d92cefc50da764b8b5 | |
| parent | d9a38aee043007ddb33822f49e3e2067d6177fa5 (diff) | |
| download | bsdgames-darwin-768fb7262968f002e10f7fa193a5cc81092187e0.tar.gz bsdgames-darwin-768fb7262968f002e10f7fa193a5cc81092187e0.zip | |
rename fgetline() and sharpen axe for bostic...
| -rw-r--r-- | quiz/quiz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quiz/quiz.c b/quiz/quiz.c index c9b7134a..06b82409 100644 --- a/quiz/quiz.c +++ b/quiz/quiz.c @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quiz.c 5.1 (Berkeley) 11/10/91";*/ -static char rcsid[] = "$Id: quiz.c,v 1.4 1993/12/22 07:23:27 cgd Exp $"; +static char rcsid[] = "$Id: quiz.c,v 1.5 1994/01/04 05:23:56 cgd Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -129,7 +129,7 @@ get_file(file) */ qp = &qlist; qsize = 0; - while ((lp = fgetline(fp, &len)) != NULL) { + while ((lp = fgetln(fp, &len)) != NULL) { if (qp->q_text && qp->q_text[strlen(qp->q_text) - 1] == '\\') qp->q_text = appdstr(qp->q_text, lp); else { @@ -262,7 +262,7 @@ quiz() qp->q_asked = TRUE; (void)printf("%s?\n", question); for (;; ++guesses) { - if ((answer = fgetline(stdin, &len)) == NULL) { + if ((answer = fgetln(stdin, &len)) == NULL) { score(rights, wrongs, guesses); exit(0); } |
