Go to the first, previous, next, last section, table of contents.


cgets

Syntax

#include <conio.h>

char *cgets(char *_str);

Description

Get a string from the console. This will take advantage of any command-line editing TSRs. To use, you must pre-fill the first character of the buffer. The first character is the size of the buffer. On return, the second character is the number of characters read. The third character is the first character read.

Return Value

A pointer to the first character read.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.