On Thu, Jul 31, 2014 at 3:58 PM, Andrea Adami <andrea.adami at gmail.com> wrote: > fgets in while loops is expected to check for != NULL I think the message could be slightly changes, saying that fgets returns NULL on error thats why we check for NULL and not 0