Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ vfmt — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SYSCALLS/VFMT - variable format package calls            1985/04/30


Include files:

     Fortran:    /sys/ins/vfmt.ins.ftn
     Pascal:     /sys/ins/vfmt.ins.pas


Procedures and Functions:

    return-value = VFMT_$DECODE{2|5|10} (control-string, text-buffer, size,
                                         count, status, a1, a2, ... a10)
        Decodes data from a text buffer and writes the decoded data into
        program variables.

    VFMT_$ENCODE{2|5|10}  (control-string, text-buffer, capacity, size,
                           a1, a2 , ... a10)
        Encodes and writes data into a text buffer.

    VFMT_$READ{2|5|10} (control-string, count, status, a1, a2, ... a10)
        Reads character data from standard input and decodes them into
        variables.

    VFMT_$RS{2|5|10} (stream-id, control-string, count, status, a1,
                      a2, ...a10)
        Reads character data from a stream and decodes them into variables.

    VFMT_$WRITE{2|5|10}  (control-string, a1, a2 , ... a10)
        Encodes data and writes them to standard output.

    VFMT_$WS{2|5|10}  (stream-id, control-string, a1, a2 , ... a10)
        Encodes data and writes them to a stream.


                      Summary of Format Directives
                      ============================


                            Data-Related
                            ------------

% [fw] [M length] [E] [Z]    [K]      [U|L] A  encode/decode ASCII
% [fw|fw.dr]      [E] [Z] [J]   [S|P] [W|L] F  encode/decode floating point
% [fw|fw.dr]          [Z] [J]   [S|P] [W|L] E  encode scientific floating
% [fw]            [E] [Z] [J] [U|S|P] [W|L] O  encode/decode integer octal
% [fw]            [E] [Z] [J] [U|S|P] [W|L] D  encode/decode integer decimal
% [fw]            [E] [Z] [J] [U|S|P] [W|L] H  encode/decode integer hex


                        Control String-Related
                        ----------------------

        %"..."    declare characters to be used as field
                   delimiters
        %$        end control string
        %.        end control string, inserting new line
                    character
        %n(       begin repeat range
        %)        end repeat range


                           Format-Related
                           --------------

        %%        output a single %
        %/        insert new line character
        %nT       tab to certain column for read or write
        %nX       insert blank

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026