When do you #include <stdlib.h>?

der Mouse mouse at mcgill-vision.UUCP
Sat Apr 9 07:31:31 AEST 1988


>> I realized today that you can call functions that are in stdlib.h
>> without actually including [stdlib.h].

Sometimes.  Those that are real functions, maybe.

> If you didn't want to include <stdlib>, you could [have] done the
> prototype yourself:
> long atol();
>   or if you are blessed with an ANSI compiler
> long atol(char *str);

Unless, of course, what stdlib.h actually says is

#define atol(s) _builtin_atol(s)

					der Mouse

			uucp: mouse at mcgill-vision.uucp
			arpa: mouse at larry.mcrcim.mcgill.edu



More information about the Comp.lang.c mailing list