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

VFWritef

Write a BCPL formatted string to a file (buffered)

Declaration

Source position: amigados.pas line 1737

procedure VFWritef(

  fh: LongInt;

  const format: pCHAR;

  const argarray: pLONGINT

);

Arguments

fh

  

Filehandle to write to

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