:? 16진수를 화일에서 문자열로 읽어와서 다시 int형 변수에 넣으려고 하는데 atoi는 안돼네요 방법좀 알려주세요
man fscanf man sscanf
sscanf(src_str, "%x", &int_val); printf("%d", int_val);
이런 식으로 하면 되지 않을지..
---- 자신을 이길 수 있는자는 무슨짓이든 할수있다.. 즉..무서운 넘이란 말이지 ^-_-^ 나? 아직 멀었지 ㅠㅠ
int i; FILE *fp; ....
fscanf(fp, "%x", &i);
man fscanfman sscanf[code:1]ssca
man fscanf
man sscanf
sscanf(src_str, "%x", &int_val); printf("%d", int_val);이런 식으로 하면 되지 않을지..
----
자신을 이길 수 있는자는
무슨짓이든 할수있다..
즉..무서운 넘이란 말이지 ^-_-^
나? 아직 멀었지 ㅠㅠ
int i;FILE *fp;....fscanf(fp,
int i;
FILE *fp;
....
fscanf(fp, "%x", &i);