Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>response_expand</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
response_expand

Usage

   #include <dos.h>
   int _pascal response_expand(int *argc, char ***argv)

Description

   The function response_expand expands an argument list read in from a
   response file. The response file should be passed in the form @filename.
   Any existing command line arguments are preserved. Response files can be
   nested.

   response_expand will also expand command line arguments based on
   environment variables rather than response file names.

Example 

   #include <stdio.h>
   #include <dos.h>
   #include <stdlib.h>

   int main(int argc, char **argv)
   {
       int i;

       response_expand(&argc, &argv);

       for (i = 1; i < argc; i++)
           printf("Arg %d is %s\n",i,argv[i])
       return EXIT_SUCCESS;
   }

Return Value

   0 if successful, otherwise non-zero, in which case argc and argv are
   unchanged.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson