• Jeremy Fitzhardinge's avatar
    add argv_split() · d84d1cc7
    Jeremy Fitzhardinge authored
    argv_split() is a helper function which takes a string, splits it at
    whitespace, and returns a NULL-terminated argv vector.  This is
    deliberately simple - it does no quote processing of any kind.
    [ Seems to me that this is something which is already being done in
      the kernel, but I couldn't find any other implementations, either to
      steal or replace.  Keep an eye out. ]
    Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
    Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Randy Dunlap <randy.dunlap@oracle.com>
argv_split.c 1.81 KB