home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / utility / slectric.lzh / DOKU / SAMPLE.C < prev    next >
C/C++ Source or Header  |  1986-02-06  |  1KB  |  56 lines

  1. /* ------------------------------------------------------------------------- */
  2. /* ----- sample.c ----- Selectric Example ---------------------------------- */
  3. /* ------------------------------------------------------------------------- */
  4. /* ----------------------------------------- (c) 1992 by Oliver Scheel ----- */
  5. /* ------------------------------------------------------------------------- */
  6.  
  7. #include <stdio.h>
  8. #include <aes.h>
  9.  
  10. #include "fsel_inp.h"
  11.  
  12. /* ------------------------------------------------------------------------- */
  13.  
  14. char    p0[128] = "C:\\ACCS\\*.AC?",
  15.     p1[128] = "C:\\TOOLS\\*.*",
  16.     p2[128] = "",
  17.     p3[128] = "";
  18.  
  19. char    e0[17] = "*.AC[CX]",
  20.     e1[17] = "*.PRG",
  21.     e2[17] = "*.TXT,*.DOC",
  22.     e3[17] = "*.INF";
  23.  
  24. char    *my_paths[4] = { p0, p1, p2, p3 };
  25. char    *my_ext[4] = { e0, e1, e2, e3 };
  26.  
  27. char    more_fnames[5 * 15];    /* entspricht 5 Namen a 15 Zeichen */
  28.  
  29. char    pfname[128] = "",
  30.     pname[128] = "",
  31.     fname[14] = "";
  32.  
  33. /* ------------------------------------------------------------------------- */
  34.  
  35. int main(void)
  36. {
  37.     int    is_slct_da;
  38.  
  39.     appl_init();
  40.  
  41.     slct_extpath(4, &my_ext, 4, &my_paths);    /* eigene Pfade setzen */
  42.     is_slct_da = slct_morenames(1, 5, more_fnames);    /* we want more */
  43.  
  44.     if(file_select(pfname, pname, fname, "*.*", "Selectric\277 Sample"))
  45.     {
  46.         if(is_slct_da)
  47.         {
  48.             /* weggucken ... */
  49.             printf("\r\nYou wanted more ... \r\n\n%s", more_fnames);
  50.         }
  51.     }
  52.  
  53.     appl_exit();
  54.     return(0);
  55. }
  56.