Re: Help with a little C
- Posted by Robert Pilkington <pilking at BELLATLANTIC.NET> Feb 12, 1999
- 416 views
>I need a little help with just what this line of code does > >boolean G_CheckDemoStatus (void); > >i know what boolean means in math but what does it do here??? Since it's a prototype, you will need to look for where the function, G_Check_DemoStatus() is located. It should look something like this: boolean G_CheckDemoStatus (void) { // Code return result; } Porting to Euphoria, you won't need the prototype, but just do this: function G_CheckDemoStatus() -- Code return result end function boolean just means only allocate enough memory for 1 bit. (I think.. that's all it needs, anyway.) result will be true or false in the function when it is called. I assume the function returns true if everything is ok, false otherwise. Either that, or true when it's not ok... This answer your question?