response_expand

#include <stdlib.h> int response_expand(int *pargc,char ***pargv);

Expand any response files in command line. Response files are arguments that look like: @NAME The name is first searched for in the environment. If it is not there, it is searched for as a file name. Arguments are separated by spaces, tabs, or newlines. These can be imbedded within arguments by enclosing the argument in '' or "". Recursively expands nested response files.

To use, put the line: response_expand(&argc,&argv); as the first executable statement in main(int argc, char **argv). argc and argv are adjusted to be the new command line arguments after response file expansion.

Digital Mars's MAKE program can be notified that a program can accept long command lines via environment variables by preceding the rule line for the program with a *.

bool
response_expand
(
Strings* args
)

Return Value

Type: bool

0 success !=0 failure (argc, argv unchanged)

Meta