H5G_CREATE2 creates a new group in a file. After a group has been created, links to datasets and to other groups can be added.
name parameters specify where the group is located.
loc_id may be a file, group, dataset, named datatype or attribute in the file. If an attribute, dataset, or named datatype is specified for
loc_id then the group will be created at the location where the attribute, dataset, or named datatype is attached.
name is the link to the group;
name may be either an absolute path in the file (the links from the root group to the new group) or a relative path from
loc_id (the link(s) from the group specified by
loc_id to the new group). See the Accessing objects by location and name topic for more information.
gapl_id are property list identifiers. These property lists govern how the link to the group is created, how the group is created, and how the group can be accessed in the future, respectively.
H5P_DEFAULT can be passed in if the default properties are appropriate for these property lists. Currently, there are no APIs for the group access property list; use
H5P_DEFAULT. See H5P: Property List Interface for the functions that can be used with each property list.
To conserve and release resources, the group should be closed when access is no longer required.