ArtVandelay
01-05-2003, 07:30 AM
I was messing around the other day, just
making a mini program to check out the IP
address structures (sockaddr_in and sockaddr_in6)
and I did some printf statements so I could get some visuals on what was going on.
Anyways, I had stupidly forgot to include stdio.h,
but it compiled anyways!
I am now noticing quite a few standard library functions that are working without me making the includes. Can anyone tell me why this is? I'd like to turn this "feature" off, if possible so I don't accidently create any bad code where I forget includes.
This is gcc on RedHat 8.0 I'm using.
making a mini program to check out the IP
address structures (sockaddr_in and sockaddr_in6)
and I did some printf statements so I could get some visuals on what was going on.
Anyways, I had stupidly forgot to include stdio.h,
but it compiled anyways!
I am now noticing quite a few standard library functions that are working without me making the includes. Can anyone tell me why this is? I'd like to turn this "feature" off, if possible so I don't accidently create any bad code where I forget includes.
This is gcc on RedHat 8.0 I'm using.