Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: How to use 'unsigned char' C data type with Win32::API (&255)

by sam_bakki (Pilgrim)
on Mar 13, 2012 at 09:41 UTC ( [id://959279]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # C Code
    # printf ("\n \n DEV: %d , %c , %x ", i2cGetDeviceAddress(),i2cGetDevi
    +ceAddress(),i2cGetDeviceAddress());
    #
    # Output: DEV: 70 , F , 46
    
  2. or download this
    $ret = unpack ('C',pack ('i*',$ret)); #This gives 152 but this is not 
    +i want :(
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://959279]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found