diff options
author | scratko <m@scratko.xyz> | 2024-06-20 18:38:11 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-06-21 01:00:37 +0300 |
commit | ef4604d9c146dbab1a653f66209103b74e6feb36 (patch) | |
tree | 62562f68a0080cd65d94a525110180dab3b99919 /dynamic_array.c | |
parent | 8f4f87eabec13330a2b3a974975053c1e4632a11 (diff) | |
download | shell-ef4604d9c146dbab1a653f66209103b74e6feb36.tar.gz shell-ef4604d9c146dbab1a653f66209103b74e6feb36.tar.bz2 shell-ef4604d9c146dbab1a653f66209103b74e6feb36.zip |
Shell-edit release
Autocomplete program and file names (tab).
Moving the cursor to edit commands (left and right arrows).
Deleting a character in a command (backspace).
Diffstat (limited to 'dynamic_array.c')
-rw-r--r-- | dynamic_array.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dynamic_array.c b/dynamic_array.c index 5a24cb8..c0a8723 100644 --- a/dynamic_array.c +++ b/dynamic_array.c @@ -1,4 +1,5 @@ #include "dynamic_array.h" + #include <stdlib.h> void dynarr_create_array(struct dynamic_array *array) @@ -31,7 +32,7 @@ void dynarr_copy_array(struct dynamic_array *array, char *new_arr) new_arr[i] = array->arr[i]; } -void dynarr_drop_word(struct dynamic_array *array) +void dynarr_reset_array(struct dynamic_array *array) { array->last_element_index = -1; } |