[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'Exec' (#aros)

RawDoFmt

Format data into a character stream.

Declaration

Source position: exec.pas line 1295

function RawDoFmt(

  const FormatString: STRPTR;

  const DataStream: APTR;

  PutChProc: TProcedure;

  PutChData: APTR

):APTR;

Arguments

FormatString

  

%[flags][width.limit][length]type

DataStream

  

A pointer to a zone of memory containing the data. Data has to be WORD aligned.

PutChProc

  

Callback function. Called for each character, including the NULL terminator. or one of the values RAWFMTFUNC_*

PutChData

  

Data propagated to each call of the callback hook.

Function result

A pointer to the rest of the DataStream.

Description

perform "C"-language-like formatting of a data stream, outputting the result a character at a time. Where % formatting commands are found in the FormatString, they will be replaced with the corresponding element in the DataStream. %% must be used in the string if a % is desired in the output.


Documentation generated on: 2017-01-10