encyclopegia.org

C character classification

C character classification is a group of operations in the C standard library that test a character for membership in a particular class of characters, such as alphabetic characters or control characters.[src] Both single-byte and wide characters are supported.[src]

C character classification is a group of operations in the C standard library that test a character for membership in a particular class of characters, such as alphabetic characters or control characters.[src] Both single-byte and wide characters are supported.[src] ('A' Eventually, the interface to common character classification functionality was codified in the C standard library file ctype.h.[src] define isdigit(c) ((c) >= '0' && (c) This can lead to an error when the macro parameter x is expanded to an expression with a side effect; for example: isdigit(x++) .[src] If the implementation was a function, then x would be incremented only once.[src] But for this macro definition it is incremented twice.[src] To eliminate this problem, a common implementation is for the macro to use table lookup.[src] For example, the standard library provides an array of 256 integers one for each character value that each contain a bit-field for each supported classification.[src] A macro references an integer by character value index and accesses the associated bit-field.[src] For example, if the low bit indicates whether the character is a digit, then the isdigit macro could be written as: define isdigit(c) (TABLE[c] & 1) The macro argument, c , is referenced only once, so is evaluated only once.[src] ==References== ==External links==[src]

13 sentences · 13 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"C character classification." encyclopegia.org, 2025, https://encyclopegia.org/wiki/c-character-classification. Accessed 02 December 2026.

Chicago

"C character classification." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/c-character-classification.

APA

encyclopegia.org. (2025). C character classification. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/c-character-classification

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

character body

stub · references available

character encoding in HTML

stub · references available

character encoding

stub · references available

ACM Computing Classification System

stub · references available

Social character

stub · references available

mascot character

stub · references available

aircraft classification number

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1328454953 · 0.5 · snapshot enwiki-001328454953

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.