ReadBuf.PAS

Language:
Русский
English

  {ReadBuf.PAS}
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 {Sample code for the ReadBuf function.}

  uses WinCrt;

 var
   C: PChar;

 begin
   GetMem(C, 20);
   C := #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;
   Writeln('Type a phrase up to 20 characters long:');
   ReadBuf(C, 20);
   Writeln(' You typed: ');
   Writeln(C);
 end.

Тэги:
| G+
Код для вставки: :: :: :: ::
Поделиться: // //