C programming help ....

Ben Duncan bns
Fri May 19 10:11:35 PDT 2006


Ok, I am trying to figure out how to "pack" hex strings a 32 bit integer.
What I need to do is code the following characters.
"LNDE", "INDE", "RNDE", "DATA", "DEAD" each into a integer.

is the correct way to do this (on a 32 bit machine) thus:

int LNDE_int = 0x4C4E4445 ;         /* Pack 'LNDE' into LNDE_int */

.. and so on and so on ....

Thanks ...


-- 
Ben Duncan   - Business Network Solutions, Inc. 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
        - Hanlon's Razor



More information about the Linux-users mailing list