Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change list length in
data_structures/list/list.c
(#1265)
I changed the return value of n in List_length to reflect the number of items inside the list, so a newly initialized list will return a length of 0. To prevent items in List_toArray from being cut off, I addeone back to n at the beginning of the List_toArray function.
- Loading branch information