Language:
Русский
English
ReadBuf (function) (WinCrt unit)
Inputs a line from the CRT window.
Declaration
function ReadBuf(Buffer: PChar; Count: Word): Word;
Target
Windows
Remarks
This function is passed two parameters: Buffer and Count. Buffer points to a line buffer that has room for up to Count characters. Count contains the number of characters to read. Up to Count2 characters can be input. An end-of-line marker (a #13 followed by a #10) is automatically appended to the line when the user presses Enter.
Return Value
Number of characters read, including the end-of-line or end-of-file marker.