SW006014 Microchip Technology, SW006014 Datasheet - Page 25

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.
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 SW006014