SW006013 Microchip Technology, SW006013 Datasheet - Page 26

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

Related parts for SW006013