-

Difference between revisions of "Functions HI-TECH C CGETS"

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search
(Created page with "<strong>CGETS, CPUTS</strong> ==SYNOPSIS== #include <conio.h> char * cgets(char * s) void cputs(char * s) ==DESCRIPTION== <strong>Cputs</strong>() will read...")
 
(No difference)

Latest revision as of 18:30, 31 July 2017

CGETS, CPUTS

SYNOPSIS

#include  <conio.h>

char *    cgets(char * s)

void      cputs(char * s)


DESCRIPTION

Cputs() will read one line of input from the console into the buffer passed as an argument. It does so by repeated calls to getche(). Cputs() writes its argument string to the console, outputting carriage returns before each newline in the string. It calls putch() repeatedly.

SEE ALSO

getch, getche, putch