What would the equivalent of this Perl line be in C?
unpack('J>', pack('B*', $s))
Depending on the build of Perl, it takes the binary representation of 4 or 8 bytes
"11110000000000000000000001010001"
or
"0000000000000000000000000000000011110000000000000000000001010001"
and returns the 32-bit or 64-bit integer that represented by those bytes in big-endian order.
0xF0000051