forked from starnakin/IronGOLEM
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			330 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			330 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
main()
 | 
						|
{
 | 
						|
	local ptr;
 | 
						|
	name = "strndup";
 | 
						|
 | 
						|
	ptr = strndup("bozoman", 7);
 | 
						|
	test_str(ptr, "bozoman", "");
 | 
						|
	free(ptr);
 | 
						|
 | 
						|
	ptr = strndup("bozoman", 4);
 | 
						|
	test_str(ptr, "bozo", "");
 | 
						|
	free(ptr);
 | 
						|
 | 
						|
	ptr = strndup("bozoman", 10);
 | 
						|
	test_str(ptr, "bozoman", "");
 | 
						|
	free(ptr);
 | 
						|
	
 | 
						|
	ptr = strndup("bozoman", 0);
 | 
						|
	test_str(ptr, "", "");
 | 
						|
	free(ptr);
 | 
						|
}
 |