Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

VFWritef

Write a BCPL formatted string to a file (buffered)

Declaration

Source position: amigados.pas line 2257

function VFWritef(

  Fh: Pointer;

  const Fmt: PChar;

  const ArgArray: PLongInt

):LongInt;

Arguments

Fh

  

Filehandle to write to

Fmt

  

BCPL style formatting string

ArgArray

  

Pointer to array of formatting values

Description

Writes the formatted string and values to the specified file. This routine is assumed to handle all internal buffering so that the formatting string and resultant formatted values can be arbitrarily long. The formats are in BCPL form. This routine is buffered.

Supported formats are: (Note x is in base 36!)

%S
string (CSTR)
%Tx
writes a left-justified string in a field at least x bytes long.
%C
writes a single character
%Ox
writes a number in octal, maximum x characters wide
%Xx
writes a number in hex, maximum x characters wide
%Ix
writes a number in decimal, maximum x characters wide
%N
writes a number in decimal, any length
%Ux
writes an unsigned number, maximum x characters wide
%$
ignore parameter

Note: 'x' above is actually the character value - '0'.

See also

VPrintf

  

Format and print string (buffered)

VFPrintf

  

format and print a string to a file (buffered)

FPutC

  

Write a character to the specified output


Documentation generated on: 2021-07-30