SW006013 Microchip Technology, SW006013 Datasheet - Page 22

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
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 SW006013