I have a array of 4 chars and i need his ascii value in a single number.
For example in the array is "joh0". The result should be in hex 0x6a726f00 or in int 111617776.
I use it in the function ntohl(int x).
I have a array of 4 chars and i need his ascii value in
Share
From your description, it sounds like what you want this (possibly with the indices swapped):
But I don’t know where you’re getting 106111104048 from.