/* toUpperCase.c
This is a C program called toUpperCase that reads from
its stdin, converts every character to uppercase and writes
the result back to stdout.  SKILL will put this program to
use by sending to it a string for conversion to uppercase.
*/
#include <stdio.h>
#include <ctype.h>
#define TRUE 1

main()
{
    int c;
    char s[100],*p;

    while( TRUE ) {
	bzero(s,99);
	p = &(s[0]);
	gets(p);
	while ( *p ) 
	{
	    if (*p != ' ' && islower(*p))
		*p = toupper(*p);
	    p++;
	}
	printf("%s \n" , s);
	fflush(stdout);
   }
}
