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>performs binary inversion on a character string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Performs binary inversion on a character string
------------------------------------------------------------------------------

 Syntax

        GT_Inv(<cString>) --> <cString2>

 Arguments:

      <cString> is any character string

 Returns:

      <cString2> is a binary inverted version of <cString>

 Description:

      This function takes a character string, turns it into a stream
      of binary digits (each eight 'bits' represents one character
      from the input string, and is it's ASCII value), then inverts
      the 'bits', and finaly turns the stream back into a string of
      ASCII characters.

      Passing the inverted string back to the function will cause it
      to revert to it's initial state.

 Examples:

      ? GT_Inv('101010')           // '010101'

      ? GT_Inv('SAM')              // '.+.'

      ? GT_Inv(GT_Inv('SAM'))      // 'SAM'

 Source: GTMATH08.PRG

 Author:  Philip Ide

See Also: GT_BINARY() GT_BTOD() GT_DTOB()

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