SW006013 Microchip Technology, SW006013 Datasheet - Page 19

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
© 2008 Microchip Technology Inc.
isalpha (Continued)
Example:
iscntrl
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
#include <ctype.h> /* for isalpha */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
B is alphabetic
# is NOT alphabetic
Test for a control character.
<ctype.h>
int iscntrl(int c);
c
Returns a non-zero integer value if the character is a control character;
otherwise, returns zero.
A character is considered to be a control character if its ASCII value is
in the range 0x00 to 0x1F inclusive, or 0x7F.
#include <ctype.h> /* for iscntrl */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
B is NOT a control character
A tab is a control character
int ch;
ch = 'B';
if (isalpha(ch))
else
ch = '#';
if (isalpha(ch))
else
char ch;
ch = 'B';
if (iscntrl(ch))
else
ch = '\t';
if (iscntrl(ch))
else
printf("B is alphabetic\n");
printf("B is NOT alphabetic\n");
printf("# is alphabetic\n");
printf("# is NOT alphabetic\n");
printf("B is a control character\n");
printf("B is NOT a control character\n");
printf("A tab is a control character\n");
printf("A tab is NOT a control character\n");
character to test.
DS51456E-page 15

Related parts for SW006013