2016. 9. 26. 21:13
Something like this could be useful:
char str[] = "0x1800785";
int num;
sscanf(str, "%x", &num);
printf("0x%x %i\n", num, num);
Read man sscanf
http://stackoverflow.com/questions/14050452/how-to-convert-byte-array-to-hex-string-in-visual-c
스택 오버플로우에서 발췌한 글입니다.