Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のコードを持っています:
volatile unsigned int * address; char * array="0x10000008";
「配列」値を「アドレス」変数に書き込む正しい方法は何ですか?
あなたが使用することができますsscanf:
sscanf
#include <stdio.h> sscanf(array, "%p", &address);
またはstrtoull:
strtoull
#include <stdlib.h> address = (unsigned int *)strtoull(array, NULL, 0);