memcpy is not supposed to check for any terminating null character in the source, so why does it stop at the terminating zero character?
I want to copy a binary file.
Code:int main() { char buf[] = "bbbbbbbbb"; memcpy (buf, "$\0aaa", 5); cout << buf << endl; return 0; }