SW500009 Microchip Technology, SW500009 Datasheet - Page 190

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
CGETS
Synopsis
Description
The cgets() function will read one line of input from the console into the buffer passed as an ar-
gument. It does so by repeated calls to getche(). As characters are read, they are buffered, with
backspace deleting the previously typed character, and ctrl-U deleting the entire line typed so far.
Other characters are placed in the buffer, with a carriage return or line feed (newline) terminating
the function. The collected string is null terminated.
Example
See Also
getch(), getche(), putch(), cputs()
176
#include <conio.h>
char * cgets (char * s)
#include <conio.h>
#include <string.h>
char buffer[80];
void
main (void)
{
}
for(;;) {
}
cgets(buffer);
if(strcmp(buffer, "exit") == 0)
cputs("Type ’exit’ to finish\n");
break;
Library Functions

Related parts for SW500009