summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_utils.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-06-09 21:29:04 (GMT)
committerGitHub <noreply@github.com>2022-06-09 21:29:04 (GMT)
commit0311d4c00a14ad2268c3b2aaa4a248c423afdbc8 (patch)
tree5fd961a0cf50912145cb0e2420566913170726d4 /tools/lib/h5tools_utils.c
parentb2794b474acaf9050b03239502056bdd34975db8 (diff)
downloadhdf5-0311d4c00a14ad2268c3b2aaa4a248c423afdbc8.zip
hdf5-0311d4c00a14ad2268c3b2aaa4a248c423afdbc8.tar.gz
hdf5-0311d4c00a14ad2268c3b2aaa4a248c423afdbc8.tar.bz2
Hdf5 1 10 sync (#1795)
* Branch sync updates and spelling * Revert format of getenv
Diffstat (limited to 'tools/lib/h5tools_utils.c')
-rw-r--r--tools/lib/h5tools_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index 8b138e7..97c3534 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -345,7 +345,7 @@ get_option(int argc, const char *const *argv, const char *opts, const struct lon
* * Last two characters in the string MUST be ")\0".
*
* * Generates a copy of the input string `start`, (src..")\0"), replacing
- * separators and close-paren with null charaters.
+ * separators and close-paren with null characters.
* * This string is allocated at runtime and should be freed when done.
* * Generates array of char pointers, and directs start of each element
* (each pointer) into this copy.
@@ -392,7 +392,7 @@ parse_tuple(const char *start, int sep, char **cpy_out, unsigned *nelems, char *
char * elem_ptr = NULL;
char * dest_ptr = NULL;
unsigned elems_count = 0;
- char ** elems = NULL; /* more like *elems[], but complier... */
+ char ** elems = NULL; /* more like *elems[], but compiler... */
char ** elems_re = NULL; /* temporary pointer, for realloc */
char * cpy = NULL;
herr_t ret_value = SUCCEED;
@@ -502,7 +502,7 @@ parse_tuple(const char *start, int sep, char **cpy_out, unsigned *nelems, char *
/* Found terminal, non-escaped close-paren. Last element.
* Write null terminator to copy.
* Advance source pointer to gently break from loop.
- * Requred to prevent ")" from always being added to last element.
+ * Required to prevent ")" from always being added to last element.
*/
start++;
}