Isdigit (test whether the character is Arabic numerals)

Source: Internet
Author: User
/* Isdigit (test whether the character is an Arabic number) related function isxdigit header file # include <ctype. h> define the int isdigit (INT c) function to check whether the value of parameter C is 0 to 9. If the return value is an Arabic number, true is returned. Otherwise, null (0) is returned ). This is a macro definition, not a real function. Example * // * Find the Arabic character in the STR string */# include <ctype. h> # include <stdio. h> main () {char STR [] = "[email protected] # FDSP [E? "; Int I; for (I = 0; STR [I]! = 0; I ++) if (isdigit (STR [I]) printf ("% C is an digit character \ n", STR [I]);} /* Run 1 is an digit character2 is an digit character3 is an digit character */

 

Isdigit (test whether the character is Arabic numerals)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.