ctype.h(3avr)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

ctype.h β€” the character-classification and character-conversion glow-up zone, straight out of section 3avr of the manual (that's the AVR-LibC corner of the library world, bestie πŸ’–).


πŸŽ€ SYNOPSIS πŸŽ€

πŸ’… Functions

🌸 Character classification routines

Okay so these functions do character classification, which is just a fancy way of saying they vibe-check a character and tell you true or false depending on whether the character you passed in actually falls into that function's little classification club. Like, isdigit() returns true if its argument is any value '0' through '9', inclusive β€” that's the whole squad. 🫢

Heads up: if the input is not an unsigned char value, all of these functions return false. No cap. 🚫
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 β€” it's giving generous, it's giving no gatekeeping. ✨

  • toascii() clears all highest bits.
  • tolower() and toupper() return an input argument as is if it is not an unsigned char value β€” they literally just hand it back to you, unchanged, like "not my problem bestie". πŸ’€
int toascii (int __c)
int tolower (int __c)
int toupper (int __c)

πŸ‘‘ Author

Generated automatically by Doxygen for AVR-LibC from the source code. (Yes, a robot wrote it. An iconic robot. Periodt. πŸ€–πŸ’…)


And that's the whole page, bestie β€” this was ctype.h from section 3avr, brought to you by AVR-LibC, Version 2.2.1. Slay, stay classified, and go convert some characters. πŸŽ€πŸŒˆπŸ’–

πŸ“¦ where this page comes from