1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 herr_t
 ss_file_openall(size_t nfiles,                  /* Number of entries in the FILEREF array. */
                 ss_file_ref_t *fileref,         /* Array of information for files to be opened. */
                 unsigned flags,                 /* Flags to control how files are opened. */
                 ss_prop_t *props                /* Additional file opening properties (see File Properties). */
                 )
 {
     SS_ENTER(ss_file_openall, herr_t);
     size_t              i;
     ss_file_t *file;

     for (i=0; i<nfiles; i++) {
         file = ss_file_open(&(fileref[i].file), fileref[i].newname, flags, props);
         if (NULL==file)
             SS_ERROR_FMT(FAILED, ("fileref %lu with name `%s'", (unsigned long)i, fileref[i].newname));
         SS_FREE(file);
     }

 SS_CLEANUP:
     SS_LEAVE(0);
 }