SW006013 Microchip Technology, SW006013 Datasheet - Page 25

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.
isxdigit (Continued)
Example:
tolower
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
#include <ctype.h> /* for isxdigit */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
B is a hexadecimal digit
t is NOT a hexadecimal digit
Convert a character to a lower case alphabetical character.
<ctype.h>
int tolower (int c);
c
Returns the corresponding lower case alphabetical character if the
argument was originally upper case; otherwise, returns the original
character.
Only upper case alphabetical characters may be converted to lower
case.
#include <ctype.h> /* for tolower */
#include <stdio.h> /* for printf */
int main(void)
{
}
int ch;
ch = 'B';
if (isxdigit(ch))
else
ch = 't';
if (isxdigit(ch))
else
int ch;
ch = 'B';
printf("B changes to lower case %c\n",
ch = 'b';
printf("b remains lower case %c\n",
ch = '@';
printf("@ has no lower case, ");
printf("so %c is returned\n", tolower(ch));
printf("B is a hexadecimal digit\n");
printf("B is NOT a hexadecimal digit\n");
printf("t is a hexadecimal digit\n");
printf("t is NOT a hexadecimal digit\n");
tolower(ch));
tolower(ch));
The character to convert to lower case.
DS51456E-page 21

Related parts for SW006013