From 54679d85b1f2c1349bcbbc76b10d57a1e5137f23 Mon Sep 17 00:00:00 2001 From: scratko Date: Thu, 20 Jun 2024 18:38:11 +0300 Subject: 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). --- dynamic_array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dynamic_array.c') 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 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; } -- cgit v1.2.3