home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 201_01 / execute.doc < prev    next >
Encoding:
Text File  |  1979-12-31  |  1.1 KB  |  26 lines

  1. EXECUTE.C is the source code for enhanced versions of the functions exec()
  2. and chain().  It defines two functions called _exec() and _chain() that are
  3. in every way identical to exec() and chain(), with one minor exception.
  4. exec() and chain() look for the program to be executed *ONLY* in the current
  5. directory.  _exec() and _chain() look first in the current directory, then
  6. searches through the current PATH, if one exists.  In addition, if the name
  7. of the program to be executed is COMMAND.COM, it will first check to see if
  8. the environment variable COMSPEC is defined, and if so, will use what it says
  9. to use as a shell.
  10.  
  11. To use these functions, you'll need to compile the file EXECUTE.C and bind
  12. the resulting EXECUTE.O file together with EXEC.O and your program.  If you
  13. are using the _chain() entry point, be sure to make EXEC the first name in
  14. your list of files that are being bound together.  This guarantees that the
  15. maximum amount of available memory is allocated to the program being chained
  16. to.
  17.  
  18. Enjoy!
  19.  
  20. Dan Lewis, owner
  21. Key Software Products
  22. 440 Ninth Avenue
  23. Menlo Park, CA. 94025
  24.  
  25. (415) 364-9847
  26.