Re: [PATCH] Re: sscanf("-1", "%d", &i) fails, returns 0

Henning P. Schmiedehausen (hps@intermeta.de)
Sun, 10 Nov 2002 13:41:45 +0000 (UTC)


"Randy.Dunlap" <rddunlap@osdl.org> writes:

>+ digit = *str;
>+ if (is_sign && digit == '-')
>+ digit = *(str + 1);

If signed is not allowed and you get a "-", you're in an error case
again...

Regards
Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de D-91054 Buckenhof Fax.: 09131 / 50654-20 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/