exutils.pas 629 B

12345678910111213141516171819202122232425262728293031323334353637
  1. unit exutils;
  2. interface
  3. {$mode objfpc}
  4. uses
  5. SysUtils;
  6. procedure printf(const msg: string; const args: array of const);
  7. procedure printf(const msg: string);
  8. procedure printfn(const msg: string; const args: array of const);
  9. procedure printfn(const msg: string);
  10. implementation
  11. procedure printf(const msg: string; const args: array of const);
  12. begin
  13. write(Format(msg, args));
  14. end;
  15. procedure printf(const msg: string);
  16. begin
  17. write(msg);
  18. end;
  19. procedure printfn(const msg: string; const args: array of const);
  20. begin
  21. writeln(Format(msg, args));
  22. end;
  23. procedure printfn(const msg: string);
  24. begin
  25. writeln(msg);
  26. end;
  27. end.