John's personal wiki for tech things he's trying to understand or store in a place that isn't likely to go away. Stuff here may make it into future videos, or be related to existing videos. The structure of this wiki will change a lot, so search is your best option to find something. You can use wildcards for search as well.
It's why you're probably here.
inet_addr returns -1 (
INADDR_NONE) on failure, which is
inet_aton if you want something more robust.
My own checklists/approaches for dealing with these scenarios. Do with them as you will.
If you want to take a void pointer then use it for building a structure of objects of the same data size, recast it:
void *myRAM; // allocate the ram short *shortInterface = (short *)myRAM; shortInterface++; //=> incremented by 2
This wiki will be updated and reorganized often as sections get too big. The goal is to have many smaller pages that are easy to search for and link to, rather than large pages that are hard to scan. Remember to use wiki-style links to allow for page renames!