Subversion Repositories SvarDOS

Rev

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

Rev Author Line No. Line
545 mateuszvis 1
/*
2
 * reads stdin and writes to stdout after upcasing
3
 */
4
 
5
#include <stdio.h>
6
 
7
int main(void) {
8
  int c;
9
 
10
  while ((c = getchar()) != EOF) {
11
    if ((c >= 'a') && (c <= 'z')) c -= ('a' - 'A');
12
    putchar(c);
13
  }
14
 
15
  return(0);
16
}