Quote:
Originally Posted by pludi
sizeof() is a compile-time instruction
|
I'm nit-picking, but it isn't always the case that sizeof is compile-time.
C99 allows sizeof to be runtime for VLA's.
---------- Post updated at 09:57 AM ---------- Previous update was at 09:56 AM ----------
To the OP: it would be a good idea to check the return values from all the socket and i/o functions you're using... you're flying blind, not knowing what is happening.