Newer
Older
Import / research / other / sandbox / SHA-256 / test.c
@John Ryland John Ryland on 22 Dec 2020 260 bytes import NUC files
#include <stdio.h>
#include <endian.h>

int main()
{
	int i;
	i = 0x44332211;
	printf("htobe32(%x): %x\n", i, htobe32(i));
	printf("htole32(%x): %x\n", i, htole32(i));
	printf("le32toh(%x): %x\n", i, le32toh(i));
	printf("be32toh(%x): %x\n", i, be32toh(i));
}