isxdigit - cppreference.com (2024)

Null-terminated byte strings

Functions
Character manipulation
Conversions to and from numeric formats
String manipulation
String examination
Memory manipulation
Miscellaneous

Defined in header <ctype.h>

int isxdigit( int ch );

Checks if the given character is a hexadecimal numeric character (0123456789abcdefABCDEF) or is classified as a hexadecimal character.

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Contents

  • 1 Parameters
  • 2 Return value
  • 3 Notes
  • 4 Example
  • 5 References
  • 6 See also

[edit] Parameters

ch - character to classify

[edit] Return value

Non-zero value if the character is an hexadecimal numeric character, zero otherwise.

[edit] Notes

isdigit and isxdigit are the only standard narrow character classification functions that are not affected by the currently installed C locale, although some implementations (e.g. Microsoft in 1252 codepage) may classify additional single-byte characters as digits.

[edit] Example

Run this code

#include <ctype.h>#include <limits.h>#include <stdio.h>int main(void){ for (int ndx = 0; UCHAR_MAX >= ndx; ++ndx) if (isxdigit(ndx)) printf("%c", ndx); printf("\n");}

Output:

0123456789ABCDEFabcdef

[edit] References

  • C17 standard (ISO/IEC 9899:2018):
  • 7.4.1.12 The isxdigit function (p: 147)
  • C11 standard (ISO/IEC 9899:2011):
  • 7.4.1.12 The isxdigit function (p: 203)
  • C99 standard (ISO/IEC 9899:1999):
  • 7.4.1.12 The isxdigit function (p: 184)
  • C89/C90 standard (ISO/IEC 9899:1990):
  • 4.3.1.11 The isxdigit function

[edit] See also

checks if a wide character is a hexadecimal character
(function) [edit]

C++ documentation for isxdigit

ASCII values characters

iscntrl
iswcntrl

isprint
iswprint

isspace
iswspace

isblank
iswblank

isgraph
iswgraph

ispunct
iswpunct

isalnum
iswalnum

isalpha
iswalpha

isupper
iswupper

islower
iswlower

isdigit
iswdigit

isxdigit
iswxdigit

decimal hexadecimal octal
0–8 \x0\x8 \0\10 control codes (NUL, etc.)≠0 0 0 0 0 0 0 0 0 0 0 0
9 \x9 \11 tab (\t)≠0 0≠0≠0 0 0 0 0 0 0 0 0
10–13 \xA\xD \12\15 whitespaces (\n, \v, \f, \r)≠0 0≠0 0 0 0 0 0 0 0 0 0
14–31 \xE\x1F \16\37 control codes≠0 0 0 0 0 0 0 0 0 0 0 0
32 \x20 \40 space 0≠0≠0≠0 0 0 0 0 0 0 0 0
33–47 \x21\x2F \41\57 !"#$%&'()*+,-./ 0≠0 0 0≠0≠0 0 0 0 0 0 0
48–57 \x30\x39 \60\71 0123456789 0≠0 0 0≠0 0≠0 0 0 0≠0≠0
58–64 \x3A\x40 \72\100 :;<=>?@ 0≠0 0 0≠0≠0 0 0 0 0 0 0
65–70 \x41\x46 \101\106 ABCDEF 0≠0 0 0≠0 0≠0≠0≠0 0 0≠0
71–90 \x47\x5A \107\132 GHIJKLMNOP
QRSTUVWXYZ
0≠0 0 0≠0 0≠0≠0≠0 0 0 0
91–96 \x5B\x60 \133\140 [\]^_` 0≠0 0 0≠0≠0 0 0 0 0 0 0
97–102 \x61\x66 \141\146 abcdef 0≠0 0 0≠0 0≠0≠0 0≠0 0≠0
103–122 \x67\x7A \147\172 ghijklmnop
qrstuvwxyz
0≠0 0 0≠0 0≠0≠0 0≠0 0 0
123–126 \x7B\x7E \172\176 {|}~ 0≠0 0 0≠0≠0 0 0 0 0 0 0
127 \x7F \177 backspace character (DEL)≠0 0 0 0 0 0 0 0 0 0 0 0
isxdigit - cppreference.com (2024)
Top Articles
Top 7 types of data security technology | TechTarget
What Is Safe to Delete in Disk Cleanup? Here Is the Answer - MiniTool
Mountain Dew Bennington Pontoon
Tesla Supercharger La Crosse Photos
³µ¿Â«»ÍÀÇ Ã¢½ÃÀÚ À̸¸±¸ ¸íÀÎ, ¹Ì±¹ Ķ¸®Æ÷´Ï¾Æ ÁøÃâ - ¿ù°£ÆÄ¿öÄÚ¸®¾Æ
Tyrunt
Noaa Weather Philadelphia
Locate Td Bank Near Me
You can put a price tag on the value of a personal finance education: $100,000
Strange World Showtimes Near Amc Braintree 10
Comenity Credit Card Guide 2024: Things To Know And Alternatives
How Quickly Do I Lose My Bike Fitness?
Elle Daily Horoscope Virgo
Cincinnati Bearcats roll to 66-13 win over Eastern Kentucky in season-opener
Regal Stone Pokemon Gaia
Uhcs Patient Wallet
Huge Boobs Images
Prestige Home Designs By American Furniture Galleries
Royal Cuts Kentlands
Zoe Mintz Adam Duritz
Arre St Wv Srj
Craigslist Roseburg Oregon Free Stuff
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
Cinema | Düsseldorfer Filmkunstkinos
Mississippi Craigslist
Spirited Showtimes Near Marcus Twin Creek Cinema
Meggen Nut
Allegheny Clinic Primary Care North
Issue Monday, September 23, 2024
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Storelink Afs
Springfield.craigslist
Workboy Kennel
Car Crash On 5 Freeway Today
Atlantic Broadband Email Login Pronto
A Man Called Otto Showtimes Near Amc Muncie 12
Greater Keene Men's Softball
Colorado Parks And Wildlife Reissue List
How Does The Common App Work? A Guide To The Common App
814-747-6702
Academic Calendar / Academics / Home
Poe Self Chill
Arcanis Secret Santa
About Us
Frontier Internet Outage Davenport Fl
Bank Of America Appointments Near Me
York Racecourse | Racecourses.net
Craigslist Cars For Sale By Owner Memphis Tn
The Goshen News Obituary
Buildapc Deals
Psalm 46 New International Version
When Is The First Cold Front In Florida 2022
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 5908

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.