lkml.org 
[lkml]   [2014]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: + mm-utilc-add-kstrimdup.patch added to -mm tree
From
On Sat, Feb 1, 2014 at 12:45 AM,  <akpm@linux-foundation.org> wrote:
> kstrimdup() creates a whitespace-trimmed duplicate of the passed in
> null-terminated string. This is useful for strings coming from sysfs that
> often include trailing whitespace due to user input.

I think kernel should be strict in what it accepts, otherwise
case-insensivity and
what not will be added some day.

Shell will trim whitespace for you.


\
 
 \ /
  Last update: 2014-02-03 11:41    [W:0.039 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site