blob: 53127637c7aa1ccc490c542a68a71a032b48325d [file] [log] [blame]
// RUN: test.sh -p -t %t %s
#include <string.h>
#include <assert.h>
// Example of the correct usage of memcpy().
int main()
{
char src[] = "aaaaaaaaaab";
char dst[100];
memcpy(dst, src, 11);
assert(memcmp(dst, src, 11) == 0);
return 0;
}