Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | K 1024LL |
Functions | |
s64 | perf_atoll (const char *str) |
void | argv_free (char **argv) |
char ** | argv_split (const char *str, int *argcp) |
bool | strglobmatch (const char *str, const char *pat) |
bool | strlazymatch (const char *str, const char *pat) |
int | strtailcmp (const char *s1, const char *s2) |
char * | rtrim (char *s) |
void * | memdup (const void *src, size_t len) |
argv_split - split a string at whitespace, returning an argv : 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.
strglobmatch - glob expression pattern matching : the target string to match : the pattern string to match
This returns true if the matches . can includes wildcards ('*','?') and character classes ([CHARS], complementation and ranges are also supported). Also, this supports escape character ('\') to use special characters as normal character.
Note: if syntax is broken, this always returns false.