I want to know how I can write 64-bit values into memory in C. I’m doing embedded development and in order for something to function areas of memory must be initialized using 64-bit writes.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should do it:
if your platform doesn’t provide
stdint.h, I’m sure it has something similiar as long as the architecture actually supports 64-bit integers (which, of course, you’ve said that it does). See this page for more talk about the type.