3 ms·
I really hope this was sarcasm. But if not... There's nothing here to prevent a buffer overrun. If your src doesn't end in 0, or your dest is too small, you'll
by delinka 13y ago
I really hope this was sarcasm. But if not...
There's nothing here to prevent a buffer overrun. If your src doesn't end in 0, or your dest is too small, you'll be reading memory you shouldn't and/or obliterating memory past your dest buffer. Your method is pretty much on par with an inlined strcpy.