Subversion Repositories SvarDOS

Rev

Rev 545 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 * reads stdin and writes to stdout after upcasing
 */

#include <stdio.h>

int main(void) {
  int c;

  while ((c = getchar()) != EOF) {
    if ((c >= 'a') && (c <= 'z')) c -= ('a' - 'A');
    putchar(c);
  }

  return(0);
}