We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Why include <stdlib.h> twice?

I'm reading source code and I found:

#include <stdio.h>             
#include <stdlib.h>            
#include <ctype.h>             

#ifdef HAVE_CONFIG_H           
#include "config.h"            
#endif                         

#include <math.h>              
#include <ctype.h>             
#include <stdlib.h> 

Why include <stdlib.h> and <ctype.h> twice? Btw, I'm C beginner.



98.9k

Which file are you reading?



2.1k

Thank you for your reply. I'm reading cphalcon/build/safe/phalcon.c