Mail Archives: djgpp-workers/2000/08/03/16:03:33
Hello.
There seems to be a small typo in the second example of the %[] format in
the info page for scanf(). A correcting diff is below.
Bye, Rich
*** src/libc/ansi/stdio/scanf.txh Tue Jan 25 19:36:52 2000
--- /home/rich/src/djgpp/src/libc/ansi/stdio/scanf.txh Thu Aug 3
20:35:42 2000
***************
*** 267,272 ****
/* read to end-of-line */
scanf("%d %[^\n]\n", &x, buf);
/* read letters only */
! scanf("[a-zA-Z]", buf);
@end example
--- 267,272 ----
/* read to end-of-line */
scanf("%d %[^\n]\n", &x, buf);
/* read letters only */
! scanf("%[a-zA-Z]", buf);
@end example
- Raw text -