I don't see how you can copy only the Nth (second in your case) byte from a buffer into another buffer without a loop (for, while, etc.). Look at how memcpy is implemented:
Code:while (count--) { *(char *)dst = *(char *)src; dst = (char *)dst + 1; src = (char *)src + 1; }




Marius Bancila
Reply With Quote