[ros-diffs] [fireball] 34293: Peter Oberndorfer <kumbayo84 at arcor.de> - Implement %p for scanf.
fireball at svn.reactos.org
fireball at svn.reactos.org
Fri Jul 4 14:39:44 CEST 2008
Author: fireball
Date: Fri Jul 4 07:39:43 2008
New Revision: 34293
URL: http://svn.reactos.org/svn/reactos?rev=34293&view=rev
Log:
Peter Oberndorfer <kumbayo84 at arcor.de>
- Implement %p for scanf.
Modified:
trunk/reactos/lib/sdk/crt/string/scanf.h
Modified: trunk/reactos/lib/sdk/crt/string/scanf.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/scanf.h?rev=34293&r1=34292&r2=34293&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/scanf.h [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/scanf.h [iso-8859-1] Fri Jul 4 07:39:43 2008
@@ -149,6 +149,8 @@
}
/* read type */
switch(*format) {
+ case 'p':
+ case 'P': /* pointer. */
case 'x':
case 'X': /* hexadecimal integer. */
base = 16;
@@ -179,7 +181,7 @@
if (width>0) width--;
}
/* look for leading indication of base */
- if (width!=0 && nch == '0') {
+ if (width!=0 && nch == '0' && *format != 'p' && *format != 'P') {
nch = _GETC_(file);
if (width>0) width--;
seendigit=1;
More information about the Ros-diffs
mailing list