1. 64 bit unsigned integer or uint64 minimum value = 0 and max (2^64)-1
2. format-hex tool is available in MS Windows Power tools to display input as hexadecimal values.
3. The solution requires saving data as binary, and looks like another app will pick it up.
4. Without a C compiler at hand, can imagine how little endian will result, Better still, accessed compiler at https://www.onlinegdb.com/online_c_compiler#
Suggestion:
1. Store the integer in a fixed length to allow consistency of value retrieval
2. Working on top of code by @ cytyler, storing of values can be demonstrated
CODE
#include <stdio.h>
int main()
{
unsigned long long long_integer1 = 0x0000001234567890;
unsigned long long long_integer2 = 0x0000001234567890;
FILE *fptr;
printf("Hello world");
fptr = fopen("demointeger.bin", "wb");
fwrite(&long_integer1, sizeof(unsigned long long), 1, fptr);
fwrite(&long_integer2, sizeof(unsigned long long), 1, fptr);
fclose(fptr);
return 0;
}
Output
CODE
C2 90 78 56 34 12 00 00 00 C2 90 78 56 34 12 00
00 00
Hope it helps.


Jun 13 2023, 06:49 PM
Quote


0.0127sec
0.16
6 queries
GZIP Disabled