Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.
Member Since: July 8, 2010
Country: United States
Product WRL-10533 about 9 years ago
No, this is completely legal. They set msg to point to a string with one character "1" in it. Later they send this 1-char string via vw_send(). The whole code is not efficient of course, calling strlen() on smth that is always having just one char is just waste of code and CPU, they could've gotten away with a single char variable instead of using a C string. But this is just an example, so as long as it's readable and clear, it's OK,
No public wish lists :(