[Commit] nickle scanf.5c,1.17,1.18

Keith Packard commit at keithp.com
Thu Oct 23 18:30:46 PDT 2003


Committed by: keithp

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv26721

Modified Files:
	scanf.5c 
Log Message:
Strings are separated by whitespace in scanf

Index: scanf.5c
===================================================================
RCS file: /local/src/CVS/nickle/scanf.5c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- scanf.5c	13 Oct 2003 05:48:57 -0000	1.17
+++ scanf.5c	24 Oct 2003 01:30:44 -0000	1.18
@@ -102,7 +102,7 @@
 
 	    whitespace();
 	    s = "";
-	    while (Ctype::isprint (c = File::getc(f)) && !File::end(f))
+	    while (Ctype::isgraph (c = File::getc(f)) && !File::end(f))
 		s = s + String::new(c);
 	    File::ungetc (c, f);
 	    return s;




More information about the Commit mailing list