#define _GNU_SOURCE #include "common.h" #include int main(int argc, char** argv) { char buffer[8] = {0}; bcopy("1234567890", buffer, sizeof(buffer) - 1); puts(buffer); CHK_FAIL_START bcopy("1234567890", buffer, sizeof(buffer) + 1); CHK_FAIL_END puts(buffer); return ret; }