Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
argv_split.c File Reference
#include <linux/kernel.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/export.h>

Go to the source code of this file.


void argv_free (char **argv)
 EXPORT_SYMBOL (argv_free)
char ** argv_split (gfp_t gfp, const char *str, int *argcp)
 EXPORT_SYMBOL (argv_split)

Function Documentation

void argv_free ( char **  argv)

argv_free - free an argv - the argument vector to be freed

Frees an argv and the strings it points to.

Definition at line 40 of file argv_split.c.

char** argv_split ( gfp_t  gfp,
const char str,
int argcp 

argv_split - split a string at whitespace, returning an argv : the GFP mask used to allocate memory : the string to be split : returned argument count

Returns an array of pointers to strings which are split out from . This is performed by strictly splitting on white-space; no quote processing is performed. Multiple whitespace characters are considered to be a single argument separator. The returned array is always NULL-terminated. Returns NULL on memory allocation failure.

Definition at line 63 of file argv_split.c.

EXPORT_SYMBOL ( argv_free  )
EXPORT_SYMBOL ( argv_split  )