u64 decimal to hex using C

Maicon Erick

I have a titleID u64 array in which the first position consists of 16 decimal numbers.

u64 titleID[] = {1266656072911941}

In this function:

APT_PrepareToDoApplicationJump(0, 0x000_LL, 0);

How can I replace the _ with the hex value of titleID[0]? The 0x000_LL parameter needs to have a u64 type as well.

Example using the provided titleID:

APT_PrepareToDoApplicationJump(0, 0x0004800459474C45LL, 0);
ikegami

Hex is a text representation of a number. You don't want hex. You simpy want to pass the number.

u64 titleID[] = {1266656072911941}

APT_PrepareToDoApplicationJump(0, titleID[0], 0);

is the same as

APT_PrepareToDoApplicationJump(0, 1266656072911941LL, 0);

and

APT_PrepareToDoApplicationJump(0, 0x0004800459474C45LL, 0);

They all pass the number one quadrillion, two hundred and sixty-six trillion, ...

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

TOP Ranking

HotTag

Archive