mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Auto-generate some documentation
This commit is contained in:
parent
117d0111ab
commit
13437dd19b
97 changed files with 2033 additions and 661 deletions
14
third_party/musl/glob.c
vendored
14
third_party/musl/glob.c
vendored
|
@ -227,13 +227,13 @@ static int GlobPredicate(const void *a, const void *b) {
|
|||
*
|
||||
* For example:
|
||||
*
|
||||
* glob_t g = {.gl_offs = 2};
|
||||
* glob("*.*", GLOB_DOOFFS, NULL, &g);
|
||||
* glob("../.*", GLOB_DOOFFS | GLOB_APPEND, NULL, &g);
|
||||
* g.gl_pathv[0] = "ls";
|
||||
* g.gl_pathv[1] = "-l";
|
||||
* execvp("ls", &g.gl_pathv[0]);
|
||||
* globfree(g);
|
||||
* glob_t g = {.gl_offs = 2};
|
||||
* glob("*.*", GLOB_DOOFFS, NULL, &g);
|
||||
* glob("../.*", GLOB_DOOFFS | GLOB_APPEND, NULL, &g);
|
||||
* g.gl_pathv[0] = "ls";
|
||||
* g.gl_pathv[1] = "-l";
|
||||
* execvp("ls", &g.gl_pathv[0]);
|
||||
* globfree(g);
|
||||
*
|
||||
* @param pat can have star wildcard see fnmatch()
|
||||
* @param g will receive matching entries and needs globfree()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue