Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFWRITE

POSIX Subroutine: Writes to a file.

Module

USE IFPOSIX

CALL PXFWRITE (ifildes,buf,nbyte,nwritten,ierror)

ifildes

(Input) INTEGER(4). The file descriptor for the file to be written to.

buf

(Input) Character. The buffer that contains the data to write into the file.

nbyte

(Input) INTEGER(4). The number of bytes to write.

nwritten

(Output) INTEGER(4). The returned number of bytes written.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The PXFWRITE subroutine writes nbyte bytes from the storage buf into a file specified by file descriptor ifildes. The subroutine returns the total number of bytes read into nwritten. If no error occurs, the value of nwritten will equal the value of nbyte.

See Also