]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vsscanf.c
Only the character groups still missing...
[pdclib] / functions / stdio / vsscanf.c
index 34397ac36407834ff02f63b16de83190fc4db493..5126bae9ec7349aa38b8bcaf5e2bab453ca9051d 100644 (file)
@@ -59,6 +59,11 @@ int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict form
         }
         else
         {
+            /* NULL return code indicates input error */
+            if ( rc == NULL )
+            {
+                break;
+            }
             /* Continue parsing after conversion specifier */
             format = rc;
         }