system() is declared in stdlib.h.
However, if you include malloc.h, objbase.h or wchar.h - or any other
include file that recursively includes one of the above, you will get the
system() prototype.
Note that what include files that will in one or more step reach stdlib.h
may differ between different versions of the MinGW compiler.
/Per W
On Thu, 7 Oct 2004, Gerardo Fernandez wrote:
> Hi all,
>
> when using system("pause") in C programs, in some computers I have to inc=
lude
> stdlib.h while in some other ones it is not neccesary.
>
> Can anyone explain this?
>
> Thanks in advance.
>
> --
> Gerardo Fern=E1ndez
> http://www.AjedrezVasco.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out mo=
re
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|