SW006014 Microchip Technology, SW006014 Datasheet - Page 22

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
DS51456E-page 18
islower (Continued)
isprint
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
ispunct
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Output:
B is NOT lower case
b is lower case
Test for a printable character (includes a space).
<ctype.h>
int isprint (int c);
c
Returns a non-zero integer value if the character is printable; other-
wise, returns zero.
A character is considered to be a printable character if it is in the range
0x20 to 0x7e inclusive.
#include <ctype.h> /* for isprint */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
& is a printable character
a tab is NOT a printable character
Test for a punctuation character.
<ctype.h>
int ispunct (int c);
c
Returns a non-zero integer value if the character is a punctuation char-
acter; otherwise, returns zero.
A character is considered to be a punctuation character if it is a print-
able character which is neither a space nor an alphanumeric character.
Punctuation characters consist of the following:
! " # $ % & ' ( ) ; < = > ? @ [ \ ] * + , - . / : ^ _ { | } ~
int ch;
ch = '&';
if (isprint(ch))
else
ch = '\t';
if (isprint(ch))
else
printf("& is a printable character\n");
printf("& is NOT a printable character\n");
printf("a tab is a printable character\n");
printf("a tab is NOT a printable character\n");
character to test
character to test
© 2008 Microchip Technology Inc.

Related parts for SW006014