code_junkie

Windows analog to UNIX atoh() function

Nov 12th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. unsigned x = atoh("A");
  2.  
  3. long x = strtoul("A", (char **) NULL, 16);
  4. // x will be 10 decimal
Add Comment
Please, Sign In to add comment