add more functions

This commit is contained in:
Such Meme, Many Skill
2020-04-01 13:57:25 +02:00
parent 0e60746179
commit f438827263
4 changed files with 75 additions and 8 deletions

View File

@@ -221,7 +221,7 @@ int str_str_index(int index, char **out){
dict_str_str *temp;
temp = str_str_table;
for (int i = 0; i < (index - 1); i++){
for (int i = 0; i < index; i++){
if (temp == NULL)
return -1;
temp = temp->next;