Difficulty in implementing tail recursive calls in C | Hacker News Reader