]> git.baikalelectronics.ru Git - kernel.git/commit
add argv_split()
authorJeremy Fitzhardinge <jeremy@xensource.com>
Wed, 18 Jul 2007 01:37:02 +0000 (18:37 -0700)
committerJeremy Fitzhardinge <jeremy@goop.org>
Wed, 18 Jul 2007 15:47:40 +0000 (08:47 -0700)
commitf4fd74e1ad4556659797762c80676269ae250088
treeb6ccc40d323998d4ad013c7b05613bc727a8f4e0
parent0451587abce3e8697c24d867e9e42353f4ce9ddd
add argv_split()

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: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
include/linux/string.h
lib/Makefile
lib/argv_split.c [new file with mode: 0644]