DTRHELP.HLB  —  Functions  FN$BIT_XOR
       Returns the bitwise exclusive OR of two longwords.

1  –  Input

       This function takes two arguments: two longwords. The two must be
       separated by a comma and enclosed in parentheses.

2  –  Output

       An integer number.

3  –  Example

       DTR> DECLARE OP1 PIC 99999999 LONG .;
       DTR> DECLARE OP2 PIC 99999999 LONG .;
       DTR> OP1 = 128+64+32 ;
       DTR> OP2 = 32+8+4+1 ;
       DTR> PRINT FN$BIT_XOR(OP1,OP2);

         FN$BIT
          XOR

               205

       DTR>
Close Help