#define __STDC_WANT_LIB_EXT1__ 1 #include #include void main( void ) { char buffer[80]; memcpy_s( buffer, sizeof( buffer ), "Hello", 5 ); buffer[5] = '\0'; printf( "%s\n", buffer ); }