lkml.org 
[lkml]   [2002]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] Re: sscanf("-1", "%d", &i) fails, returns 0
    Date
    "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/

    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:0.020 / U:4.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site