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

FWrite

Writes a number of blocks to an output (buffered)

Declaration

Source position: amigados.pas line 2487

function FWrite(

  Fh: LongInt;

  Block: Pointer;

  BlockLen: LongWord;

  Number: LongWord

):LongWord;

Arguments

Fh

  

filehandle to use for buffered I/O

Block

  

Area to write bytes from.

BlockLen

  

Number of blocks to block. Must be > 0.

Function result

Number of _blocks_ written. On an error, the number of blocks actually written is returned.

Description

Attempts to write a number of blocks, each blocklen long, from the specified buffer to the output stream. May return less than the number of blocks requested, if there is some error such as a full disk or r/w error. This call is buffered.

See also

FPutC

  

Write a character to the specified output

FRead

  

Reads a number of blocks from an input (buffered)

FPuts

  

Writes a string the the specified output


Documentation generated on: 2021-07-30