diff options
author | James Booth <boothj5@gmail.com> | 2015-02-23 00:50:58 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-02-23 00:50:58 +0000 |
commit | 7454bede8b67003ea17017fa4dd8a7b86f42d6b6 (patch) | |
tree | 825e945664cc6687eb5b7c77f29bd272b52a5734 /src/tools/parser.c | |
parent | 95e7bd5a84b48f009e547d7017e925b3b9253d6f (diff) | |
parent | 2f4d66ea6e8b735678fc6946ca34864275b390e4 (diff) | |
download | profani-tty-7454bede8b67003ea17017fa4dd8a7b86f42d6b6.tar.gz |
Merge branch 'master' into readline
Diffstat (limited to 'src/tools/parser.c')
-rw-r--r-- | src/tools/parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c index 98fc21d4..1f8a5220 100644 --- a/src/tools/parser.c +++ b/src/tools/parser.c @@ -47,9 +47,9 @@ * * inp - The line of input * min - The minimum allowed number of arguments - * max - The maxmimum allowed number of arguments + * max - The maximum allowed number of arguments * - * Returns - An NULL terminated array of strings representing the aguments + * Returns - An NULL terminated array of strings representing the arguments * of the command, or NULL if the validation fails. * * E.g. the following input line: @@ -69,7 +69,7 @@ parse_args(const char * const inp, int min, int max, gboolean *result) return NULL; } - // copy and strip input of leading/trailing whitepsace + // copy and strip input of leading/trailing whitespace char *copy = strdup(inp); g_strstrip(copy); @@ -181,9 +181,9 @@ parse_args(const char * const inp, int min, int max, gboolean *result) * * inp - The line of input * min - The minimum allowed number of arguments - * max - The maxmimum allowed number of arguments + * max - The maximum allowed number of arguments * - * Returns - An NULL terminated array of strings representing the aguments + * Returns - An NULL terminated array of strings representing the arguments * of the command, or NULL if the validation fails. * * E.g. the following input line: |