In GameStudio Manual there some examples about engine_open, engine_close etc.
In the examples I can see this line: #include <stdlib.h>
What is the folder where from this header is pulled in?