Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
H5hut
src
Commits
5b57beda
Commit
5b57beda
authored
Jul 01, 2016
by
gsell
Browse files
examples/H5Fed/dump_field_attributes.c:
- bugfix in printing string attributes
parent
222789a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/H5Block/dump_field_attributes.c
examples/H5Block/dump_field_attributes.c
+3
-3
No files found.
examples/H5Block/dump_field_attributes.c
View file @
5b57beda
...
...
@@ -110,15 +110,15 @@ dump_string_attrib (
const
char
*
const
attrib_name
,
h5_size_t
attrib_nelems
)
{
char
*
attrib_data
[
attrib_nelems
];
char
attrib_data
[
attrib_nelems
];
H5BlockReadFieldAttribString
(
file
,
field_name
,
attrib_name
,
attrib_data
);
printf
(
"Attribute: '%s'
\n
"
,
attrib_name
);
printf
(
" Type: H5_
FLOAT32
_T
\n
"
);
printf
(
" Data: %
2f
"
,
attrib_data
[
0
]
);
printf
(
" Type: H5_
STRING
_T
\n
"
);
printf
(
" Data: %
s
"
,
attrib_data
);
}
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment