SW006014 Microchip Technology, SW006014 Datasheet - Page 23

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
© 2008 Microchip Technology Inc.
ispunct (Continued)
Example:
isspace
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
#include <ctype.h> /* for ispunct */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
& is a punctuation character
a tab is NOT a punctuation character
Test for a white-space character.
<ctype.h>
int isspace (int c);
c
Returns a non-zero integer value if the character is a white-space char-
acter; otherwise, returns zero.
A character is considered to be a white-space character if it is one of
the following: space (' '), form feed ('\f'), newline ('\n'), carriage return
('\r'), horizontal tab ('\t'), or vertical tab ('\v').
#include <ctype.h> /* for isspace */
#include <stdio.h> /* for printf */
int main(void)
{
}
int ch;
ch = '&';
if (ispunct(ch))
else
ch = '\t';
if (ispunct(ch))
else
int ch;
ch = '&';
if (isspace(ch))
else
ch = '\t';
if (isspace(ch))
else
printf("a tab is NOT a punctuation character\n");
printf("a tab is NOT a white-space character\n");
printf("& is a punctuation character\n");
printf("& is NOT a punctuation character\n");
printf("a tab is a punctuation character\n");
printf("& is a white-space character\n");
printf("& is NOT a white-space character\n");
printf("a tab is a white-space character\n");
character to test
DS51456E-page 19

Related parts for SW006014