Re: Help with a little C
- Posted by Grape Vine <chat_town at HOTMAIL.COM> Feb 12, 1999
- 433 views
Yes it does...thank you... >Date: Fri, 12 Feb 1999 17:32:18 -0500 >Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> >From: Robert Pilkington <pilking at BELLATLANTIC.NET> >Subject: Re: Help with a little C >To: EUPHORIA at LISTSERV.MUOHIO.EDU > >>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? > ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com