%p

On Apr 19, 2011, at 10:50 AM, Jon Sigman wrote:

> Basic question: Just for debugging purposes, I'm trying to print out the 
> address 
> of a pointer to a struct, but I can't figure out the proper way to do it (ie, 
> satisfy the compiler warnings). OSX 10.6.7, Xcode 3.2.6
> 
>    dispatch_source_t our_gcd_source;
>    . . .
>    printf("gcd_source: %08X\n",gcd_source);
> warning: format '%08X' expects type 'unsigned int', but argument 2 has type 
> 'dispatch_source_t'
>    . . .
>    printf("gcd_source: %08X\n",(unsigned int)gcd_source);
> warning: cast from pointer to integer of different size
> 
> Thx
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> 
> This email sent to david.dun...@apple.com

--
David Duncan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to