Include <ctype.h> header file contains function summary

Source: Internet
Author: User

The functions contained in the main are:

1. Character test function, function prototype is generally: int isxxxx (int);

The parameter is int and can only be handled correctly [0, 127].

2. Character mapping function, function prototype is generally: int toxxxx (int);

parameter detection, if the scope of the conversion, otherwise unchanged

int tolower (int); ' A ' ~ ' Z ' ==> ' a ' ~ ' Z '//first determine if it is a lowercase letter, if not, convert it to a lowercase letter (simple memory: to lower

int toupper (int); ' A ' ~ ' Z ' ==> ' a ' ~ ' Z '//first determine if it is not an uppercase letter, if not, convert it to uppercase (simple memory: to Upper  3. Determine the letter function:int isalpha (char ch);returns "Not 0" if Ch is a letter, otherwise returns 0. (Précis-writers: is Alpha?) )
   4. Determine if the control character function is not:int Iscntrl (char ch);Check if CH controls the character (its ASCII code is between 0 and 0x1f and the value is 0-31). (Précis-writers: is Cntrl?)   5. Determine the number function:int isdigit (char ch);If CH is a number then return "not 0", otherwise return 0. (Précis-writers: is digit?) ) 6. Determine the lowercase letter function:int islower (char ch);yes returns "Not 0", otherwise returns 0.  7. Determine the uppercase function:int isupper (char ch);yes returns "Not 0", otherwise returns 0.  8. Also determine whether it is a function of letters or numbers:int isalnum (char ch);yes returns "Not 0", otherwise returns 0. (Précis-writers: is Al or num?) (Remember these first ~ ~ ~)!          

Include <ctype.h> header file contains function summary

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.