mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			224 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			224 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <string.h>
 | 
						|
#include <stdio.h>
 | 
						|
 | 
						|
#define SIZE 10
 | 
						|
 | 
						|
static char buffer[SIZE];
 | 
						|
 | 
						|
main ()
 | 
						|
{
 | 
						|
  strncpy (buffer, "hello", SIZE);
 | 
						|
  puts (buffer);
 | 
						|
  strncat (buffer, ", world", SIZE - strlen (buffer) - 1);
 | 
						|
  puts (buffer);
 | 
						|
}
 |