The problem is, how do you calculate the length (len) of the buffer (buf)?
Weren't you paying attention when you put stuff in buf? If you were, you'd know how much stuff is in buf. If not, then, don't worry about it. Just use 0 as the length.
The problem is, how do you calculate the length (len) of the buffer (buf)?
Weren't you paying attention when you put stuff in buf? If you were, you'd know how much stuff is in buf. If not, then, don't worry about it. Just use 0 as the length.