forked from starnakin/IronGOLEM
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			333 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			333 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
main()
 | 
						|
{
 | 
						|
	local str;
 | 
						|
	
 | 
						|
	name = "strchr";
 | 
						|
	
 | 
						|
	str = "bozoman du 36";
 | 
						|
	test_str(strchr(str, 'z'), str + 2, "");
 | 
						|
	test_str(strchr(str, 0), str + 13, "");
 | 
						|
	test_str(strchr(str, '5'), 0, "");
 | 
						|
	test_str(strchr(str, '6'), str + 12, "");
 | 
						|
	test_str(strchr("", 'q'), 0, "empty str");
 | 
						|
	test_str(strchr("", 0), "", "empty str and \0 to find");
 | 
						|
}
 |