islower| | isdigit| | Isupper

Source: Internet
Author: User
Tags define function

Correlation function Isalpha,isupper Header file #include<ctype.h> define function int islower (int c) function Description Check if parameter c is a lowercase English letter. The return value returns True if the argument C is a lowercase English letter, otherwise null (0) is returned. Additional instructions This is a macro definition, not a real function.
1#include <ctype.h>2 Main ()3 {4charstr[]="[email protected] #FDsP [e?";5 Inti;6  for(i=0; str[i]!=0; i++)7 if(Islower (Str[i])) printf ("%cisalower-casecharacter\n", Str[i]);8}

IsDigit
Table header File #include <ctype.h>
Defining functions int isdigit (char c)
Function description Check whether the parameter C is Arabic numerals 0 to 9.
return value Returns true if the argument C is an Arabic numeral, otherwise null (0) is returned.
Additional Instructions This is a macro definition, not a real function.
1#include <ctype.h>2 Main ()3 {4   Charstr[]="[email protected] #FDsP [e?";5   inti;6     for(i=0; str[i]!=0; i++)7     {8      if(IsDigit (Str[i]))9printf"%c is an digit character\n", Str[i])Ten      } One}
Prototype: extern int isupper (int c); header file: ctype.h function: Determines whether the character C is uppercase English letter description: When the parameter C is capitalized English letter (A-Z), returns a value other than 0, otherwise returns zero. Additional notes: This is a macro definition, not a real function.
#include <ctype.h>#include<stdio.h>intMain () {Chartest[]="A1b2c3d4"; Char*POS; POS=Test;  while(*pos!=0)    {        if(Isupper (*POS)) printf ("%c",*POS); POS++; } printf ("\ n"); return 0;}

islower| | isdigit| | Isupper

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.