3 .ds ;G \\*(;G\\f\\$1\\$3\\f\\$2
4 .if !
\a\\$4
\a\a .Af \\$2 \\$1 "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
7 .ie
\a\\$3
\a\a .ft \\$1
11 .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
16 .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
19 .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
22 .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
24 .de EX \" start example
41 vecargs \- command argument vector insertion routines
43 .L "#include <vecargs.h>"
45 .L "char** vecload(char* string);"
46 .L "char** vecfile(const char* path);"
47 .L "char** vecstring(const char* string);"
48 .L "void vecfree(char**, int);"
49 .L "int vecargs(char** vec, int* argcp, char*** argvp);"
52 loads a string vector from lines in
55 may be modified upon return.
58 is treated as a new vector element.
61 as the first character are comments.
63 joins consecutive lines.
64 A string vector pointer is returned, 0 on error.
67 constructs a string vector by calling
69 on the contents of the file named by
71 The string vector pointer is returned, 0 on error.
74 constructs a string vector by calling
78 The string vector pointer is returned, 0 on error.
81 frees a string vector allocated by
88 inserts the string vector
102 NULL and empty string args in
106 is called before the return.
108 is returned if the insertion failed.
111 is commonly used to modify command
120 to modify its arguments on startup.
121 Its a handy way to override default options on a directory by directory basis
122 without modify the standard control files
123 (\f5Makefile\fP in this case.)
125 This paradigm is not recommended for all commands; only a few exceptions