lkml.org 
[lkml]   [2012]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sscanf: don't ignore field widths for numeric conversions
On Fri, 02 Nov 2012 14:44:08 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:

> This is another step towards better standard conformance. Rather than
> adding a local buffer to store the specified portion of the string
> (with the need to enforce an arbitrary maximum supported width to
> limit the buffer size), do a maximum width conversion and then drop as
> much of it as is necessary to meet the caller's request.
>
> Also fail on negative field widths.
>
> ...
>
> + simple_strtol(str, &next, base) :

simple_strtol() kerndoc says "This function is obsolete. Please use
kstrtol instead." Can we?



\
 
 \ /
  Last update: 2012-11-02 23:01    [W:0.038 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site