Category : Modula II Source Code
Archive   : STDLIB.ZIP
Filename : SPRINTF.MOD

 
Output of file : SPRINTF.MOD contained in archive : STDLIB.ZIP

IMPLEMENTATION MODULE SPRINTF;

FROM PrintFBase IMPORT
DoPrintF;

VAR Dummy:CARDINAL;

(*.............................................*)

PROCEDURE SPrintF(pat:ARRAY OF CHAR; VAR dest:ARRAY OF CHAR);
BEGIN
DoPrintF(pat,Dummy,Dummy,Dummy,Dummy,Dummy,dest,0);
END SPrintF;

(*.............................................*)

PROCEDURE SPrintF1(pat:ARRAY OF CHAR; arg1:ARRAY OF BYTE;
VAR dest:ARRAY OF CHAR);
BEGIN
DoPrintF(pat,arg1,Dummy,Dummy,Dummy,Dummy,dest,1);
END SPrintF1;

(*.............................................*)

PROCEDURE SPrintF2(pat:ARRAY OF CHAR; arg1,arg2:ARRAY OF BYTE;
VAR dest:ARRAY OF CHAR);
BEGIN
DoPrintF(pat,arg1,arg2,Dummy,Dummy,Dummy,dest,2);
END SPrintF2;

(*.............................................*)

PROCEDURE SPrintF3(pat:ARRAY OF CHAR; arg1,arg2,arg3:ARRAY OF BYTE;
VAR dest:ARRAY OF CHAR);
BEGIN
DoPrintF(pat,arg1,arg2,arg3,Dummy,Dummy,dest,3);
END SPrintF3;

(*.............................................*)

PROCEDURE SPrintF4(pat:ARRAY OF CHAR; arg1,arg2,arg3,arg4:ARRAY OF BYTE;
VAR dest:ARRAY OF CHAR);
BEGIN
DoPrintF(pat,arg1,arg2,arg3,arg4,Dummy,dest,4);
END SPrintF4;

(*.............................................*)

PROCEDURE SPrintF5(pat:ARRAY OF CHAR; arg1,arg2,arg3,arg4,arg5:ARRAY OF BYTE;
VAR dest:ARRAY OF CHAR);
BEGIN
DoPrintF(pat,arg1,arg2,arg3,arg4,arg5,dest,5);
END SPrintF5;

(*.............................................*)

END SPRINTF.


  3 Responses to “Category : Modula II Source Code
Archive   : STDLIB.ZIP
Filename : SPRINTF.MOD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/