[ create a new paste ] login | about

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

C, pasted on Nov 26:
#include <stdio.h>
int  that_character(char test_character);

int main(void) {

    char this_character= 'a';

    if ( that_character(this_character)  ) {
    printf("This is lowercase\n");

    }
    return 0;
}

int that_character(char test_character) {

    if( test_character & 0x20) {
//checks if lowercase by returning a non-zero if true
        return 1;

        }

    return 0;
}


Output:
1
This is lowercase


Create a new paste based on this one


Comments: