I've just started reading C and have a question about a macro.
How can I print a 5 byte integer value (that happens to be defined in a macro)?
For example: ...
hi all. so, i'm new to c programming, but i'm figuring it out a bit at a time, no pun intended. so, to be honest, i was given a homework assignment to write some code that would use pcap to sniff packets off the wire, then spit out the packet contents in a formatted fashion - i.e. Source Address = , ...
Various ways. Since you are using a short int, you know that it's a 16-bit value, two bytes. If you were doing the same for an int, then you would need to know how bit an int is in your system -- in 32-bit systems, it would be 32 bits, but you should still check. Also, a byte is of the ...