Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ misc_format_line(3K) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

printf(3S)



misc_format_line(3K)              SDK R4.11             misc_format_line(3K)


NAME
       miscformatline - provide limited sprintf(3S) capabilities

SYNOPSIS
       #include "/usr/src/uts/aviion/ii/imisc.h"

       uint32type   miscformatline (resultbuf, rbsize, format,
                     value00, value01, value02, value03, value04,
                     value05, value06, value07, value08, value09,
                     value10, value11, value12, value13, value14,
                     value15, value16, value17, value18, value19)
       charptrtype   resultbuf;   /*WRITE ONLY*/
       uint32type     rbsize;      /*READ ONLY*/
       charptrtype   format;       /*READ ONLY*/
       bit32etype     value00;     /*READ ONLY*/
       bit32etype     value01;     /*READ ONLY*/
       bit32etype     value02;     /*READ ONLY*/
       bit32etype     value03;     /*READ ONLY*/
       bit32etype     value04;     /*READ ONLY*/
       bit32etype     value05;     /*READ ONLY*/
       bit32etype     value06;     /*READ ONLY*/
       bit32etype     value07;     /*READ ONLY*/
       bit32etype     value08;     /*READ ONLY*/
       bit32etype     value09;     /*READ ONLY*/
       bit32etype     value10;     /*READ ONLY*/
       bit32etype     value11;     /*READ ONLY*/
       bit32etype     value12;     /*READ ONLY*/
       bit32etype     value13;     /*READ ONLY*/
       bit32etype     value14;     /*READ ONLY*/
       bit32etype     value15;     /*READ ONLY*/
       bit32etype     value16;     /*READ ONLY*/
       bit32etype     value17;     /*READ ONLY*/
       bit32etype     value18;     /*READ ONLY*/
       bit32etype     value19;     /*READ ONLY*/

   where:
       format      Pointer to the format string.  This format string is the
                   same as those used in printf.
       rbsize     Size of the buffer.
       resultbuf  Pointer to the buffer where resulting formatted output is
                   placed.
       value00...value19
                   Place holder for format substitution values.  value00 is
                   the first value, value01 is the second, etc.

DESCRIPTION
       This routine provides limited sprintf(3S) features; it formats output
       and performs value substitutions.  It formats a line, creating a
       string by substituting values according to field descriptors.

       The field descriptors in the input format are a subset of the field
       descriptors that the standard library routine printf provides.
       Currently provided are %c, %s, %d, %o, %x, %u, and the ability to
       specify field length and zero padding.

DIAGNOSTICS
   Return Value
       None.

   Errors
       None.

SEE ALSO
       printf(3S).
       Programming in the DG/UX Kernel Environment.


Licensed material--property of copyright holder(s)

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