Function report |
Source Code:lib\argv_split.c |
Create Date:2022-07-28 06:14:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:argv_split - split a string at whitespace, returning an argv*@gfp: the GFP mask used to allocate memory*@str: the string to be split*@argcp: returned argument count* Returns an array of pointers to strings which are split out from*@str
Proto:char **argv_split(gfp_t gfp, const char *str, int *argcp)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
gfp_t | gfp | |
const char * | str | |
int * | argcp |
67 | argv_str = kstrndup(str, Maximum allocatable size - 1, gfp) |
68 | If Not argv_str Then Return NULL |
71 | argc = count_argc(argv_str) |
72 | argv = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
73 | If Not argv Then |
81 | If Note: isspace() must return false for %NUL-terminator ( * argv_str) Then |
84 | Else if was_space Then |
89 | * argv = NULL |
93 | Return argv_ret |
Name | Describe |
---|---|
run_cmd | |
trace_run_command |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |