diff options
| author | James Booth <boothj5@gmail.com> | 2015-02-23 00:49:56 +0000 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2015-02-23 00:49:56 +0000 |
| commit | 2f4d66ea6e8b735678fc6946ca34864275b390e4 (patch) | |
| tree | c328f69806ba6d6bc3a59e24df44a1ece3aec7e0 /src/tools | |
| parent | cd084c7e46d40deee566e4aa5758c233d9f56632 (diff) | |
| parent | a1d14c4526a8d47adeef254cf0ae9142ae2b13b3 (diff) | |
| download | profani-tty-2f4d66ea6e8b735678fc6946ca34864275b390e4.tar.gz | |
Merge remote-tracking branch 'stormc/master-spellfixes'
Conflicts:
src/command/command.c
Diffstat (limited to 'src/tools')
| -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: |