Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

VPrintf

Format and print string (buffered)

Declaration

Source position: amigados.pas line 2257

function VPrintf(

  format: PChar;

  argarray: Pointer

):LongInt;

Arguments

format

  

exec.library RawDoFmt style formatting string

argarray

  

Pointer to array of formatting values

Function result

Number of bytes written or -1 (EOF) for an error

Description

Writes the formatted string and values to DosOutput(). This routine is assumed to handle all internal buffering so that the formatting string and resultant formatted values can be arbitrarily long. Any secondary error code is returned in IoErr(). This routine is buffered.

Note: RawDoFmt assumes 16 bit ints, so you will usually need 'l's in your formats (ex: %ld versus %d).

See also

VFPrintf

  

format and print a string to a file (buffered)

VFWritef

  

Write a BCPL formatted string to a file (buffered)

RawDoFmt

  

Format data into a character stream.

FPutC

  

Write a character to the specified output


Documentation generated on: 2021-07-30