mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			317 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			317 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <stdio.h>
 | |
| 
 | |
| char *
 | |
| strtoupper(char *string)
 | |
| {
 | |
| 	int			i;
 | |
| 
 | |
| 	for (i = 0; i < strlen(string); i++)
 | |
| 		string[i] = toupper(string[i]);
 | |
| 	return string;
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| void
 | |
| main(char argc, char **argv)
 | |
| {
 | |
| 	char		str[250];
 | |
| 	int			sw = 0;
 | |
| 
 | |
| 	while (fgets(str, 240, stdin))
 | |
| 	{
 | |
| 		if (sw == 0)
 | |
| 			printf("%s", strtoupper(str));
 | |
| 	}
 | |
| 
 | |
| }
 |