diff options
author | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-05-21 23:37:38 +0200 |
---|---|---|
committer | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-05-21 23:37:38 +0200 |
commit | f959165cdece3c1bfae8abce834a2bb78db96190 (patch) | |
tree | c8f060d804a0c8aed5cbba2bd37a5ecb114dc21b /02_exercise/prompt_utils.c | |
parent | 45b35365a5d0f895caeb6178f5f0a70cfe4464ee (diff) | |
download | betriebssysteme-f959165cdece3c1bfae8abce834a2bb78db96190.tar.gz betriebssysteme-f959165cdece3c1bfae8abce834a2bb78db96190.zip |
Process parse_line working
Diffstat (limited to '02_exercise/prompt_utils.c')
-rw-r--r-- | 02_exercise/prompt_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/02_exercise/prompt_utils.c b/02_exercise/prompt_utils.c index d43a6b6..238f47c 100644 --- a/02_exercise/prompt_utils.c +++ b/02_exercise/prompt_utils.c @@ -84,7 +84,7 @@ size_t *get_seperator_indeces(char const *const text, char seperator) { return NULL; } while ((current = strchr(current, seperator)) != NULL) { - arrayPush(indeces) = current - text; + arrayPush(indeces) = (size_t) (current - text); ++current; } arrayPush(indeces) = strlen(text); |