mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-19 14:14:47 +00:00
[PR #1265] changed list length to reflect contents of the list #1869
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/1265
State: closed
Merged: Yes
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 added one back to n at the beginning of the List_toArray function.
Description of Change
References
Checklist
Notes: