/* ------------------------------------------------------------------------- */ /* ----- sample.c ----- Selectric Example ---------------------------------- */ /* ------------------------------------------------------------------------- */ /* ----------------------------------------- (c) 1992 by Oliver Scheel ----- */ /* ------------------------------------------------------------------------- */ #include #include #include "fsel_inp.h" /* ------------------------------------------------------------------------- */ char p0[128] = "C:\\ACCS\\*.AC?", p1[128] = "C:\\TOOLS\\*.*", p2[128] = "", p3[128] = ""; char e0[17] = "*.AC[CX]", e1[17] = "*.PRG", e2[17] = "*.TXT,*.DOC", e3[17] = "*.INF"; char *my_paths[4] = { p0, p1, p2, p3 }; char *my_ext[4] = { e0, e1, e2, e3 }; char more_fnames[5 * 15]; /* entspricht 5 Namen a 15 Zeichen */ char pfname[128] = "", pname[128] = "", fname[14] = ""; /* ------------------------------------------------------------------------- */ int main(void) { int is_slct_da; appl_init(); slct_extpath(4, &my_ext, 4, &my_paths); /* eigene Pfade setzen */ is_slct_da = slct_morenames(1, 5, more_fnames); /* we want more */ if(file_select(pfname, pname, fname, "*.*", "Selectric\277 Sample")) { if(is_slct_da) { /* weggucken ... */ printf("\r\nYou wanted more ... \r\n\n%s", more_fnames); } } appl_exit(); return(0); }