kharm/hdf5_utils.hpp
// Make a directory (in the current directory) with given name
// This doesn't take a full path, just a name
Make a directory (in the current directory) with given name
This doesn't take a full path, just a name
Make a directory ( in the current directory ) with given name This doesn ' t take a full path just a name
int H5F::make_directory(const char *name)
{
    char path[STRLEN];
    strncpy(path, cur_dir, STRLEN);
    strncat(path, name, STRLEN - strlen(path));
    if (DEBUG)
        fprintf(stderr, "Adding dir %s\n", path);
    hid_t group_id = H5Gcreate2(file_id, path, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
    if (group_id < 0)
        FAIL(group_id, "hdf5_make_directory", path);
    H5Gclose(group_id);
    return 0;
}
int H5F :: make_directory ( const char * name ) { char path [ STRLEN ] ; strncpy ( path , cur_dir , STRLEN ) ; strncat ( path , name , STRLEN - strlen ( path ) ) ; if ( DEBUG ) fprintf ( stderr , " \n " , path ) ; hid_t group_id = H5Gcreate2 ( file_id , path , H5P_DEFAULT , H5P_DEFAULT , H5P_DEFAULT ) ; if ( group_id < 0 ) FAIL ( group_id , " " , path ) ; H5Gclose ( group_id ) ; return 0 ; }
Make a directory (in the current directory) with given name
This doesn't take a full path, just a name
Make a directory ( in the current directory ) with given name This doesn ' t take a full path just a name
// Add current directory to group name