ctype(3)

πŸ“¦
version 2.2.1 Β· 3 versions
, in fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– NAME πŸ’–

ctype β€” bestie, this whole page is your one-stop glow-up station for characters ✨


🌸 SYNOPSIS 🌸

okay so this is the avr-libc ctype(3) page, and it's literally two little friend groups: the ones that judge your character (classification) and the ones that change your character (conversion). πŸ’…

πŸŽ€ Character classification routines

These functions perform character classification. They return true or false status depending whether the character passed to the function falls into the function's classification (i.e. isdigit() returns true if its argument is any value '0' though '9', inclusive). If the input is not an unsigned char value, all of this function return false. 🫢

int isalnum (int __c)
int isalpha (int __c)
int isascii (int __c)
int isblank (int __c)
int iscntrl (int __c)
int isdigit (int __c)
int isgraph (int __c)
int islower (int __c)
int isprint (int __c)
int ispunct (int __c)
int isspace (int __c)
int isupper (int __c)
int isxdigit (int __c)

πŸ¦‹ Character convertion routines

This realization permits all possible values of integer argument. The toascii() function clears all highest bits. The tolower() and toupper() functions return an input argument as is, if it is not an unsigned char value. πŸ‘‘

int toascii (int __c)
int tolower (int __c)
int toupper (int __c)

✨ Detailed Description ✨

These functions perform various operations on characters. no cap, that's the whole vibe.

#include <ctype.h>

πŸ’… Function Documentation πŸ’…

⭐ int isalnum (int __c)

Checks for an alphanumeric character. It is equivalent to (isalpha(c) || isdigit(c)). it's giving "is this a letter OR a number bestie". πŸ’–

🌸 int isalpha (int __c)

Checks for an alphabetic character. It is equivalent to (isupper(c) || islower(c)). literally just "letter?" πŸŽ€

🧚 int isascii (int __c)

Checks whether c is a 7-bit unsigned char value that fits into the ASCII character set. πŸ¦‹

🌈 int isblank (int __c)

Checks for a blank character, that is, a space or a tab. only the softest whitespace, periodt. ✨

πŸ’€ int iscntrl (int __c)

Checks for a control character. spooky ones. πŸ‘»

πŸ”₯ int isdigit (int __c)

Checks for a digit (0 through 9).

πŸ’œ int isgraph (int __c)

Checks for any printable character except space. space does NOT get an invite to this party, sorry. πŸ™ˆ

πŸŽ€ int islower (int __c)

Checks for a lower-case character.

🌸 int isprint (int __c)

Checks for any printable character including space. this time space IS invited. 🫢

⭐ int ispunct (int __c)

Checks for any printable character which is not a space or an alphanumeric character. the punctuation girlies!! πŸŽ‰

πŸ¦‹ int isspace (int __c)

Checks for white-space characters. For the avr-libc library, these are: space, form-feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v'). the full whitespace squad, no substitutes. πŸ’…

πŸ‘‘ int isupper (int __c)

Checks for an uppercase letter. main character energy fr fr. πŸ”₯

🌈 int isxdigit (int __c)

Checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F.

🧚 int toascii (int __c)

Converts c to a 7-bit unsigned char value that fits into the ASCII character set, by clearing the high-order bits.

⚠️ Warning: Many people will be unhappy if you use this function. This function will convert accented letters into random characters. 😭 like, chaos. actual chaos. bestie, think twice.

πŸ’– int tolower (int __c)

Converts the letter c to lower case, if possible.

πŸ’œ int toupper (int __c)

Converts the letter c to upper case, if possible.


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for avr-libc from the source code. (not me writing this by hand, the robots did it, and honestly? slay. πŸ€–βœ¨)


and that's the whole page, bestie!! 🫢 this was avr-libc ctype(3), Version 2.1.0, dated Sat Jan 29 2022 β€” go forth and classify ur characters responsibly πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from