W3cubDocs

/D

ddmd.root.response

Compiler implementation of the D programming language

http:
//dlang.org This file is not shared with other compilers which use the DMD front-end.
Authors:
Walter Bright
License:
Boost License 1.0
Source:
root/response.d
bool response_expand(Strings* args)

#include 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 *.

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

© 1999–2017 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/ddmd_root_response.html