Re: Help with a little C
- Posted by "Boehme, Gabriel" <gboehme at MUSICLAND.COM> Feb 12, 1999
- 466 views
Grape Vine <chat_town at HOTMAIL.COM> wrote: > 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??? > > Grape Vine "boolean", as it appears here in C, defines the data type for the value returned from the function. We don't have to do this in Euphoria, so that's probably why it threw you. If I recall my C class correctly, this is how C knows the format of the data it's passing back from the function. Either that, or it helps the compiler convert data from one type to another if the receiving variable is a different type (or class, or whatever). As this is all from memory, I may be somewhat wrong. But I think that's the gist of it. Hope this helps, Gabriel Boehme