Beginner here, running through some exercises I've found. I would like to allocate 64k of memory, printf to the user the starting and ending location of this memory, then store some hex data to this memory block.
Then further down the line i'll be reading this hex data etc. but I'm not at that stage yet
It has to be ansi c and fully portable.
So far I have
Thanks very much, it may be simple but i'm trying to get my head around itCode:char *hex; hex = (char*)malloc(65553); hex = NULL; sscanf("0123050086FF9701867FB70601C60FF7060286009700BD051F86019700BD05267E050EFE90", "%x", &hex);