Convert HEX string to bin
From: GIR (no_at_spam.com)
Date: 11/30/03
- Next message: GIR: "Re: Small Correction: Convert HEX string to bin"
- Previous message: Paure: "Re: EOF (novice)"
- Next in thread: GIR: "Re: Small Correction: Convert HEX string to bin"
- Reply: GIR: "Re: Small Correction: Convert HEX string to bin"
- Reply: pete: "Re: Convert HEX string to bin"
- Reply: Richard Heathfield: "Re: Convert HEX string to bin"
- Reply: Sidney Cadot: "Re: Convert HEX string to bin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 12:11:20 +0100
Hi,
I've been trying to tackle the following problem but haven't been
succesfull so far.
I have string
char buffer[64];
which is filled with hexadecimal values, like this.
buffer[0] = A;
buffer[1] = 1;
buffer[0..1] combined make one value, 0xA1, which should be converted
into 10100001.
I know I could use sscanf to get the values out but sscanf is not an
option because it's too big.
Does anybody know a efficient way of converting these values?
TIA,
GIR
- Next message: GIR: "Re: Small Correction: Convert HEX string to bin"
- Previous message: Paure: "Re: EOF (novice)"
- Next in thread: GIR: "Re: Small Correction: Convert HEX string to bin"
- Reply: GIR: "Re: Small Correction: Convert HEX string to bin"
- Reply: pete: "Re: Convert HEX string to bin"
- Reply: Richard Heathfield: "Re: Convert HEX string to bin"
- Reply: Sidney Cadot: "Re: Convert HEX string to bin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|