home *** CD-ROM | disk | FTP | other *** search
/ Best Objectech Shareware Selections / UNTITLED.iso / boss / util / cdro / 003 / index.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-19  |  334 b   |  24 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* Returns the default index.txt file */
  5.  
  6. char    *getindex()
  7. {
  8.     extern    char* cdrom();
  9.  
  10.     static char retbuf[BUFSIZ];
  11.  
  12.     if (getenv("INDEX") == NULL)
  13.     {
  14.         sprintf (retbuf,"%s\\index.txt",cdrom());
  15.     }
  16.     else
  17.     {
  18.         sprintf (retbuf,"%s",getenv("INDEX"));
  19.     }
  20.  
  21.     return (retbuf);
  22.  
  23. }
  24.