[ create a new paste ] login | about

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

godneil - C, pasted on Aug 31:
# include<stdio.h>

int is_lowercase(char test_character);
int main (void)
{
    char our_character = 'a';
    
    if (is_lowercase(our_character))
    {
        printf("is Lowercase \n");
    }
    return 0;
}

int is_lowercase(char test_character)
{
    if(test_character & 0x20)
    {
        return 1;
    }
    
    return 0;
}


Output:
1
is Lowercase 


Create a new paste based on this one


Comments: