printf
- From: Shane <shane@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 14:33:29 +1200
Hi all, I am learning C, and I have a problem with printf.
I have a pointer that points to binary data, and I want to print that data
out. If I cast the pointer to (char *) then the data is printed out in the
UniCode(?) equivalent of the data.
If I try to cast to (int *) then I only get the address of the pointer (I
think). What I really want is all the ones and zeros to be printed out.
Any help appreciated
TIA
--
Q: What's yellow and equivalent to the Axiom of Choice?
A: Zorn's Lemon.
.
- Follow-Ups:
- Re: printf
- From: Richard Heathfield
- Re: printf
- From: Barry Schwarz
- Re: printf
- Prev by Date: Re: bytes calculation
- Next by Date: Re: Bounds checking and safety in C
- Previous by thread: Catching the product's weight sent via RS32 from a balance
- Next by thread: Re: printf
- Index(es):
Relevant Pages
|