[ create a new paste ] login | about

Link: http://codepad.org/0JuwTxr3    [ raw code | output | fork ]

slevy1ster - C, pasted on Aug 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int main() {
  char x = 99;
  char fA = 99;
  if ( islower(fA) ){
      printf("%s","valid lowercase letter\n");
  }
  else
  {
     printf("%s","invalid lowercase ltr\n");
  }
  char fa = tolower(fA);
  char y = tolower(x);
  printf("%c %c\n", x,y);
  printf("%c %c\n", fA,fa);
  return 0;
}


Output:
1
2
3
valid lowercase letter
c c
c c


Create a new paste based on this one


Comments: