text파일에 1234abcd 와 같이 16진수가 적혀있습니다. 이것을 읽어와서 uint32_t 타입의 0x1234abcd로 받아오고싶은데 어떡하면 되나요?
fscanf 쓰시면 되지 싶은데요.
fscanf( fp, "%x", &number );
좋은 하루 되세요!
man strtol
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
fscanf 쓰시면 되지 싶은데요.
fscanf 쓰시면 되지 싶은데요.
좋은 하루 되세요!
음 ..
man strtol
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』