i have a feeling im doing something stupid, dangerous or both
so i want poll to work with an "extension" of pollfd, i want to do that because i'm making a simple program to chat with my friends and i'd like to make it so that each item in a pollfd array contains not only the file descriptor but also stuff like their name, etc...
so i made a new struct that contains pollfd's fields but also a string variable, created an array of pointers to this new type and I cast it to an array of pointers to pollfd when passing it into poll()
I'm wondering if casting my struct to something with less data in it will mess up with the order of bytes and cause trouble