This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/strcat_s.c

13 lines
245 B
C

#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>
#include <string.h>
void main()
{
char buffer[80];
strcpy_s( buffer, sizeof( buffer ), "Hello " );
strcat_s( buffer, sizeof( buffer ), "world" );
printf( "%s\n", buffer );
}