ex86.pp 279 B

123456789101112131415161718
  1. Program Example86;
  2. { This program demonstrates the TrimRight function }
  3. Uses sysutils;
  4. {$H+}
  5. Procedure Testit (S : String);
  6. begin
  7. Writeln ('"',TrimRight(S),'"');
  8. end;
  9. Begin
  10. Testit (' ha ha what gets lost ? ');
  11. Testit (#10#13'haha ');
  12. Testit (' ');
  13. End.