summaryrefslogtreecommitdiffstats
path: root/examples/h5_extlink.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-08-26 00:28:23 (GMT)
committerGitHub <noreply@github.com>2021-08-26 00:28:23 (GMT)
commit4576b3db8b19d8ea2cc949585f4ef292ddef37a0 (patch)
tree3b507e711b42650cc40dc1b183c5872bd6f6d5a0 /examples/h5_extlink.c
parent54b92c122dcd1340dc678f586647997b3e4c86fe (diff)
downloadhdf5-4576b3db8b19d8ea2cc949585f4ef292ddef37a0.zip
hdf5-4576b3db8b19d8ea2cc949585f4ef292ddef37a0.tar.gz
hdf5-4576b3db8b19d8ea2cc949585f4ef292ddef37a0.tar.bz2
Merge of examples and hl from dev (#964)
Diffstat (limited to 'examples/h5_extlink.c')
-rw-r--r--examples/h5_extlink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/h5_extlink.c b/examples/h5_extlink.c
index 44ff2da..f9d4046 100644
--- a/examples/h5_extlink.c
+++ b/examples/h5_extlink.c
@@ -414,10 +414,15 @@ UD_hard_create(const char *link_name, hid_t loc_group, const void *udata, size_t
token = *((H5O_token_t *)udata);
+ //! [H5Open_by_token_snip]
+
/* Open the object this link points to so that we can increment
* its reference count. This also ensures that the token passed
* in points to a real object (although this check is not perfect!) */
target_obj = H5Oopen_by_token(loc_group, token);
+
+ //! [H5Open_by_token_snip]
+
if (target_obj < 0) {
ret_value = -1;
goto done;