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

FWrite

Writes a number of blocks to an output (buffered)

Declaration

Source position: amigados.pas line 2298

function FWrite(

  Fh: BPTR;

  Block: APTR;

  Blocklen: LongWord;

  NumBlocks: LongWord

):LongInt;

Arguments

Fh

  

filehandle to use for buffered I/O

Block

  

Area to write bytes from.

Blocklen

  

Number of blocks to block. Must be > 0.

NumBlocks

  

Number of bytes per write. 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: 2017-01-10