C Reference Convert to upper case: toupper()

The function toupper() returns a uppercase character of the character that is put in.

toupper() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Convert to upper case: toupper()


C Reference Convert to lower case: tolower()

The function tolower() returns a lowercase character of the character that is put in.

tolower() source code example:

More »


Posted in C Reference ctype.h Functions | 2 Comments


C Reference Hexidecimal Digit Test: isxdigit()

The function isxdigit() returns a non-zero if its argument is a hexadecimal digit. (If the argument is a: a-f, A-F, or 0-9).
If the argument is not a hexadecimal digit, then zero is returned.

isxdigit() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Hexidecimal Digit Test: isxdigit()


C Reference Upper case letter test: isupper()

The isupper() function returns a non-zero if its argument is an uppercase letter.
If the argument is not an uppercase letter, then zero is returned.

isupper() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Upper case letter test: isupper()


C Reference Space, formfeed, newline, etc test: isspace()

The isspace() function returns a non-zero if its argument is a single space, newline, tab, form feed, vertical tab, or carriage return.

If the argument is not a single space, newline, tab, form feed, vertical tab, or carriage return , then zero is returned.

isspace() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Space, formfeed, newline, etc test: isspace()


C Reference Punctuation Character: ispunct()

The ispunct() function returns a non-zero if its argument is a punctuation character. (All characters except alphanumeric or white-space). If the argument is not a punctuation character, then zero is returned.

ispunct() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Punctuation Character: ispunct()


C Reference Printing Character: isprint()

The function isprint() returns a non-zero if its argument is a printable character (including a white-space). If the argument is not a printable character (like the newline character ‘\n’ ) , then zero is returned.

isprint() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Printing Character: isprint()


C Reference Lower Case Letter Test: islower()

The islower() function returns a non-zero if its argument is a lowercase letter. If the argument is not a lowercase letter, then zero is returned.

islower() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Lower Case Letter Test: islower()


C Reference Printing Character Test (not space): isgraph()

The function isgraph() checks if parameter is a character with graphical representation that can be printed. Whitespace characters like space are skipped. If the argument is not, then zero is returned.

isgraph() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Printing Character Test (not space): isgraph()


C Reference Decimal Digit Test: isdigit()

The function isdigit() returns a non-zero if its argument is a digit between 0 and 9. If its argument is not a digit between 0 and 9, then zero is returned.

isdigit() source code example:

More »


Posted in C Reference ctype.h Functions | Comments Off on C Reference Decimal Digit Test: isdigit()