Subversion Repositories SvarDOS

Rev

Rev 545 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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