plain C to D2 const etc:

BLS nanali at nospam.wanadoo.fr
Mon Dec 15 09:11:44 PST 2008


Hi, what is the correct way to translate this snippet into _D2_ ?
//const and cast()

void rc2_decrypt( const unsigned short xkey[64],
                   unsigned char *plain,
                   const unsigned char *cipher )
         {
         unsigned x76, x54, x32, x10, i;

         x76 = (cipher[7] << 8) + cipher[6];
.........

many TIA, Bjoern


More information about the Digitalmars-d-learn mailing list