Implementing a dynamically sized array in C | Hacker News Reader