SW006013 Microchip Technology, SW006013 Datasheet - Page 75

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.
getchar
Description:
Include:
Prototype:
Return Value:
Remarks:
Example:
gets
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Get a character from stdin.
<stdio.h>
int getchar(void);
Returns the character read or EOF if a read error occurs or end-of-file
is reached.
Same effect as fgetc with the argument stdin.
#include <stdio.h> /* for getchar, printf */
int main(void)
{
}
Input:
Contents of UartIn.txt (used as stdin input for simulator):
Short
Longer string
Output:
S|h|o|r|t|
Get a string from stdin.
<stdio.h>
char *gets(char *s);
s
Returns a pointer to the string s if successful; otherwise, returns a null
pointer
The function reads characters from the stream stdin and stores them
into the string pointed to by s until it reads a newline character (which is
not stored) or sets the end-of-file or error indicators. If any characters
were read, a null character is stored immediately after the last read
character in the next element of the array. If gets sets the error indica-
tor, the array contents are indeterminate.
char y;
y = getchar();
printf("%c|", y);
y = getchar();
printf("%c|", y);
y = getchar();
printf("%c|", y);
y = getchar();
printf("%c|", y);
y = getchar();
printf("%c|", y);
pointer to the storage string
DS51456E-page 71

Related parts for SW006013