Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>create a new bit flag string.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Create a new bit flag string.
------------------------------------------------------------------------------

 Syntax

        GT_NewFlag(<nFlagCount>) --> cFlagString

 Arguments:

      <nFlagCount> is the number of flags you wish to store.

 Returns:

      A string to hold the bit flags. All flags are set to FALSE.

 Description:

      GT_NewFlag() is used to construct a bit flag string. The bit flag
      functions can be used for storing a large number of logical values
      is a small space.

      To create a bit flag string you need to pass GT_NewFlag() a value
      that is equal to or greater than the number of flags required (you
      may want to allow for future expansion). Each character in the
      string returned from GT_NewFlag() will hold 8 logical values.

 Examples:

      cFlags := GT_NewFlag(20)   // Create a bit flag string for 20
                                 // logical values.

 Source: BITFLAGS.C

 Author:  Dave Pearson

See Also: GT_SETFLAG() GT_CLRFLAG() GT_ISFLAG()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson